void Start() { s = GetComponent<spaceship>(); levelClock = GameObject.Find("gameBase").GetComponent<levelClock>(); SR = GetComponent<SpriteRenderer>(); boost = GetComponent<Animator>(); item = FindObjectOfType(typeof(spawnBoostControl)) as spawnBoostControl; }
// Use this for initialization void Start() { mr = GetComponent <MeshRenderer>(); spaceship = GetComponentInParent <spaceship>(); //MakeItFlash(); }
// Use this for initialization void Start() { obj = GameObject.Find ("spaceship(Clone)"); ship = obj.GetComponent<spaceship> (); Debug.Log ("!!!"); }
void Start() { rb2d = GetComponent <Rigidbody2D>(); joystick = (Joystick)FindObjectOfType(typeof(Joystick)); ship = GameObject.FindWithTag("Player").GetComponent <spaceship>(); }