Exemple #1
0
 public override Task Initalize(PlayerConfig config, GameObject gameObject, bool isView)
 {
     component = gameObject.GetComponentInChildren <CharacterMovement>();
     return(base.Initalize(config, gameObject, isView));
 }
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 void Awake()
 {
     Physics  = GetComponentInChildren <CharacterPhysics>();
     Movement = GetComponentInChildren <CharacterMovement>();
     Shield   = GetComponentInChildren <CharacterShield>();
 }