예제 #1
0
        private void HuntMouse(MouseAI mouse)
        {
            //Random chance of going nuts and destroying whatever is in the way
            mobAttack.onlyHitTarget = Random.value != 0.1f;

            Hiss(mouse.gameObject);
            mobAttack.StartFollowing(mouse.transform);
        }
예제 #2
0
    IEnumerator StatueStalk(Transform stalked)
    {
        while (!IsSomeoneLookingAtMe())
        {
            if (mobAttack.followTarget == null)
            {
                mobAttack.StartFollowing(stalked);
            }
            yield return(WaitFor.Seconds(.2f));
        }

        Freeze();
        yield break;
    }
예제 #3
0
    private void HuntMouse(MouseAI mouse)
    {
        //Random chance of going nuts and destroying whatever is in the way
        if (Random.value == 0.0f)
        {
            mobAttack.onlyHitTarget = false;
        }
        else
        {
            mobAttack.onlyHitTarget = true;
        }

        Hiss(mouse.gameObject);
        mobAttack.StartFollowing(mouse.transform);
    }