Example #1
0
 void Awake()
 {
     CurrentPlayerHealth = StartingPlayerHealth;
     anim = GetComponent<Animator>();
     controller = GetComponent<TP_Controller>();
     Instance = this;
 }
Example #2
0
 void Awake()
 {
     player = GameObject.Find("TP_Character");
     playerHealth = player.GetComponent <TP_Health> ();
     enemyHealth = GetComponent<EnemyHealth>();
     anim = GetComponent <Animator>();
 }
Example #3
0
 void Awake()
 {
     player = GameObject.Find("TP_Character");
     playerHealth = player.GetComponent<TP_Health>();
 }