void Start() { sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>(); timeText = GetComponent <TextMeshProUGUI>(); originalSize = timeText.fontSize; originalColor = timeText.color; //StartCoroutine(CalculateScore()); }
void Start() { wolfRb = this.GetComponent <Rigidbody2D>(); wolfRenderer = this.GetComponent <SpriteRenderer>(); baseLayer = this.GetComponent <SpriteRenderer>().sortingOrder; animator = this.GetComponent <Animator>(); sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>(); }
public void SetSpawner(SheepSpawner spawner) { sheepSpawner = spawner; }
// Start is called before the first frame update void Start() { Instance = this; StartCoroutine(SpawnRoutine()); }
// Start is called before the first frame update void Start() { health = 0; sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>(); }
void Start() { sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>(); timer = 30; stage = 0; }
// Start is called before the first frame update void Start() { sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>(); image = this.GetComponent <Image>(); }