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