Пример #1
0
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 ///
 /// <remarks>
 /// Awake is called only once during the lifetime of the script instance.
 /// Awake is always called before any Start functions.
 /// This allows you to order initialization of scripts.
 /// </remarks>
 protected virtual void Awake()
 {
     animator        = GetComponent <Animator>();
     characterMotor  = GetComponent <TPCharacter>().GetCharacteMotor();
     characterCamera = GetComponent <TPCharacter>().GetCamera();
     transform.SetKinematic(true);
     health = startHealth;
 }
Пример #2
0
 public void SetCamera(TPCamera characterCamera)
 {
     this.characterCamera = characterCamera;
 }