Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 void Start()
 {
     rgbd                 = GetComponent <Rigidbody2D>();
     ZW                   = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>();
     direction            = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>().localScale.x;
     transform.localScale = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>().localScale;
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     Player = GetComponent <Rigidbody2D>();
     TW     = GetComponent <EndOfTheWorld>();
     ATK    = GetComponent <PlayerAttack>();
     Dash   = GetComponent <Dash>();
 }
Ejemplo n.º 3
0
 void Start()
 {
     target = GameObject.FindGameObjectWithTag("Player");
     rb     = GetComponent <Rigidbody2D>();
     anim   = GetComponent <Animator>();
     ZW     = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>();
 }
Ejemplo n.º 4
0
 void Start()
 {
     rgbd = GetComponent <Rigidbody2D>();
     ZW   = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>();
 }