Example #1
0
 private void Start()
 {
     anim      = GetComponent <Animator>();
     direction = new Vector2(1, 0);
     health    = GetComponentInChildren <WandHealth>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     m_wandHealth = GameObject.Find("Player").GetComponentInChildren <WandHealth>();
     m_attack     = m_wandHealth.GetComponentInParent <Attack>();
     brewCanvas   = GetComponent <Canvas>();
 }