How to fix error CS0029: Cannot implicitly convert type `Unitycoding.CharacterSystem.Character' to `Character'
HI All guy, I have a question about Unity. I have this script but it doesn't seem to completely work
I have a few errors im not sure how to fix this problem..........
(If your able to fix this error, TY!) . . .
/GetCharacterInfo.cs(36,25): error CS0029: Cannot implicitly convert type Unitycoding.CharacterSystem.Character' to Character'
/GetCharacterInfo.cs(39,44): error CS1061: Type Character' does not contain a definition for onChange' and no extension method onChange' of type Character' could be found (are you missing a using directive or an assembly reference?)
/GetCharacterInfo.cs(47,44): error CS1061: Type Character' does not contain a definition for onChange' and no extension method onChange' of type Character' could be found (are you missing a using directive or an assembly reference?)
/GetCharacterInfo.cs(52,48): error CS1061: Type Character' does not contain a definition for Name' and no extension method Name' of type Character' could be found (are you missing a using directive or an assembly reference?)
/GetCharacterInfo.cs(53,48): error CS1061: Type Character' does not contain a definition for Gender' and no extension method Gender' of type Character' could be found (are you missing a using directive or an assembly reference?)
/GetCharacterInfo.cs(54,53): error CS1061: Type Character' does not contain a definition for Description' and no extension method Description' of type Character' could be found (are you missing a using directive or an assembly reference?)
/GetCharacterInfo.cs(55,47): error CS1061: Type Character' does not contain a definition for CharacterName' and no extension method CharacterName' of type Character' could be found (are you missing a using directive or an assembly reference?)
/GetCharacterInfo.cs(56,59): error CS1061: Type Character' does not contain a definition for RuntimeGameObject' and no extension method RuntimeGameObject' of type Character' could be found (are you missing a using directive or an assembly reference?)
 #if ICODE
 using UnityEngine;
 using System.Collections;
 using Unitycoding;
 using Unitycoding.CharacterSystem;
 
 namespace ICode.Actions.CharacterSystem{
     [Category("Character System")]    
     [Tooltip("Get selected character information.")]
     [System.Serializable]
     public class GetCharacterInfo : StateAction {
         [Shared]
         [NotRequired]
         [InspectorLabel("Class")]
         public FsmString _class;
         [Shared]
         [NotRequired]
         public FsmString gender;
         [Shared]
         [NotRequired]
         public FsmString description;
         [Shared]
         [NotRequired]
         [InspectorLabel("Name")]
         public FsmString _name;
         [Shared]
         [NotRequired]
         public FsmGameObject runtimeGameObject;
         [Tooltip("Stop to update the character on exit of the state.")]
         public FsmBool stopOnExit;
 
         private Character mCharacter;
 
         public override void OnEnter ()
         {
             mCharacter = Unitycoding.CharacterSystem.CharacterSystem.selectedCharacter;
             if (mCharacter != null) {
                 OnCharacterChange(mCharacter);
                 mCharacter.onChange.AddListener(OnCharacterChange);
             }
             Finish ();
         }
 
         public override void OnExit ()
         {
             if (mCharacter != null && stopOnExit.Value) {
                 mCharacter.onChange.RemoveListener(OnCharacterChange);
             }
         }
 
         private void OnCharacterChange(Character character){
             _class.Value=character.Name;
             gender.Value=character.Gender.ToString();
             description.Value=character.Description;
             _name.Value=character.CharacterName;
             runtimeGameObject.Value=character.RuntimeGameObject;
         }
         
     }
 }
 #endif
 
              Have you tried to declare mCharacter as an instance of Unitycoding.CharacterSystem.Character and not simply Character ? 
private Unitycoding.CharacterSystem.Character mCharacter
Your answer
 
             Follow this Question
Related Questions
Navmesh spam console when desactivated 1 Answer
Failed extracting collision mesh error 0 Answers
Scripting problem 1 Answer
Required API level 26, android sdk 2 Answers