// Start is called before the first frame update void Start() { mySpells = GetComponent <PWSpells>(); //player = GameObject.Find("Player"); anim = GetComponent <Animator>(); defaultColor = transform.GetChild(0).GetComponent <SpriteRenderer>().color; rb2d = GetComponent <Rigidbody2D>(); }
// Start is called before the first frame update void Start() { anim = GetComponent <Animator>(); PM = transform.parent.gameObject.GetComponent <PlayerMovement>(); mySpells = GetComponent <PWSpells>(); }