public void IncreaseCow(CowAI cow) { listCow.Remove(cow); counter++; powerBar.baseSize -= 0.1f; powerBar.baseSpeed += 0.5f; }
// Called by ufo if cow reach the bottom of ufo. // remove the cow from the list, increase the number of cow, increase the difficulty of the beamming. public void IncreaseCow(CowAI cow) { listCow.Remove(cow); counter++; cowCounterT.text = counter.ToString(); powerBar.baseSize -= 0.1f; powerBar.baseSpeed += 0.5f; }
public void Construct(CowAI cow) { testCow = cow; }
// Use this for initialization void Start() { rid = gameObject.GetComponent<Rigidbody>(); audiSource = gameObject.GetComponent<AudioSource>(); ai = gameObject.GetComponent<CowAI>(); anim = gameObject.GetComponent<Animator>(); damnYouDog = GameManager.instance.dog.gameObject; }