コード例 #1
0
ファイル: WolfManager.cs プロジェクト: akshkatare/AICompanion
    // 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();
 }