Пример #1
0
    // 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();
        }
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     attack = GetComponent <AttackMutant> ();
     attack.Khatamkrde();
 }