void Start() { grow = Resources.Load("Grow") as AudioClip; SphereHurt = Resources.Load("SphereHurt") as AudioClip; SphereDie = Resources.Load("SphereDie") as AudioClip; ttc = GetComponent <TurnToColor> (); rb = GetComponent <Rigidbody> (); soh = GetComponent <SplitOnHit> (); if (GameObject.FindGameObjectWithTag("EnemySpawner") != null) { se = GameObject.FindGameObjectWithTag("EnemySpawner").GetComponent <SpawnEnemy> (); } }
// Use this for initialization void Start() { ttc = GetComponent <TurnToColor> (); rb = GetComponent <Rigidbody> (); healthObject = GetComponent <Health> (); }