Exemplo n.º 1
0
 // 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>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     anim     = GetComponent <Animator>();
     PM       = transform.parent.gameObject.GetComponent <PlayerMovement>();
     mySpells = GetComponent <PWSpells>();
 }