summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/TowerBehaviour.cs
blob: dbf85b24ad2dca821ac525b43f615ab48d2e03b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using UnityEngine;

public class TowerBehaviour : MonoBehaviour
{
	public float timer;

	public float frameTime = 0.2f;

	public SpriteRenderer circle;

	public SpriteRenderer middle1;

	public SpriteRenderer middle2;

	public SpriteRenderer outer1;

	public SpriteRenderer outer2;

	public void Update()
	{
		this.timer += Time.deltaTime;
		if (this.timer < this.frameTime)
		{
			this.circle.color = Color.white;
			this.middle1.color = (this.middle2.color = (this.outer1.color = (this.outer2.color = Color.black)));
			return;
		}
		if (this.timer < 2f * this.frameTime)
		{
			this.middle1.color = (this.middle2.color = Color.white);
			this.circle.color = (this.outer1.color = (this.outer2.color = Color.black));
			return;
		}
		if (this.timer < 3f * this.frameTime)
		{
			this.outer1.color = (this.outer2.color = Color.white);
			this.middle1.color = (this.middle2.color = (this.circle.color = Color.black));
			return;
		}
		this.timer = 0f;
	}
}