// Update is called once per frame void Update() { if (attack.attack == true) { attack.Khatamkrde(); if (iscloned == false) { for (int i = 0; i < clone.Length; i++) { Temp = clone [i]; Instantiate(Temp, transform); Temp.SetActive(true); } iscloned = true; Debug.Log(iscloned); } } else { sneaking.ChaseEnemy(); } }
// Use this for initialization void Start() { attack = GetComponent <AttackMutant> (); attack.Khatamkrde(); }