Ejemplo n.º 1
0
 void Start()
 {
     levelClock = GameObject.Find("gameBase").GetComponent<levelClock>();
     spaceship = GameObject.Find("spaceship");
     rb = spaceship.GetComponent<Rigidbody2D>();
     body = spaceship.GetComponent<Transform>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     s = GetComponent<spaceship>();
     levelClock = GameObject.Find("gameBase").GetComponent<levelClock>();
     SR = GetComponent<SpriteRenderer>();
     boost = GetComponent<Animator>();
     item = FindObjectOfType(typeof(spawnBoostControl)) as spawnBoostControl;
 }
Ejemplo n.º 3
0
 void Start()
 {
     levelClock = GameObject.Find("gameBase").GetComponent<levelClock>();
 }