Пример #1
0
 // Use this for initialization
 void Start()
 {
     tokens = GameObject.FindGameObjectWithTag("TokenManager");
     if (melle)
     {
         Col.transform.localScale    = new Vector3(Range / 10, 2, Range / 10);
         Col.transform.localPosition = new Vector3(Range / 20, 0, 0);
         lastPos = transform.position;
     }
     else
     {
         Col.transform.localScale = new Vector3(Range, 2, Range);
     }
     tokenManager = tokens.GetComponent <TokenManager>();
     AttackWarning1.SetActive(false);
     request = new Request();
 }
Пример #2
0
 public void TurnWarningOn()
 {
     AttackWarning1.SetActive(true);
     Invoke("TurnWarningOff", 1f);
 }
Пример #3
0
 public void TurnWarningOff()
 {
     AttackWarning1.SetActive(false);
 }