Пример #1
0
    public override void Actions(string name)
    {
        UtilityBasedAI UBA = GameObject.Find(name).GetComponent <UtilityBasedAI>();

        if (!UBA.runOnce)
        {
            DealDamage dd = GameObject.Find(name).GetComponent <DealDamage>();
            dd.RotateTowardsTarget(GameObject.Find("Player").transform.position);
            dd.ThrowGrenade(name);
        }
    }