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