Exemplo n.º 1
0
    void Start()
    {
        sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>();
        timeText     = GetComponent <TextMeshProUGUI>();

        originalSize  = timeText.fontSize;
        originalColor = timeText.color;

        //StartCoroutine(CalculateScore());
    }
Exemplo n.º 2
0
    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>();
    }
Exemplo n.º 3
0
 public void SetSpawner(SheepSpawner spawner)
 {
     sheepSpawner = spawner;
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     Instance = this;
     StartCoroutine(SpawnRoutine());
 }
Exemplo n.º 5
0
 // Start is called before the first frame update
 void Start()
 {
     health       = 0;
     sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>();
 }
Exemplo n.º 6
0
 void Start()
 {
     sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>();
     timer        = 30;
     stage        = 0;
 }
Exemplo n.º 7
0
 // Start is called before the first frame update
 void Start()
 {
     sheepSpawner = GameObject.Find("Animal Spawner").GetComponent <SheepSpawner>();
     image        = this.GetComponent <Image>();
 }