// 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(); }
public void TurnWarningOn() { AttackWarning1.SetActive(true); Invoke("TurnWarningOff", 1f); }
public void TurnWarningOff() { AttackWarning1.SetActive(false); }