Example #1
0
 void Awake()
 {
     // Setting up references.
     //groundCheck = transform.Find("groundCheck");
     anim         = GetComponent <Animator>();
     playerHealth = GetComponent <DodoHealth>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     health = GameObject.FindGameObjectWithTag("DodoHealth").GetComponent <DodoHealth>();
 }