Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / FSM / Actions / IddleMeleeAction.cs
@Rackday Rackday on 18 Aug 352 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "AI/Action/IddleMelee")]
public class IddleMeleeAction : Action
{
    public override void Act(FiniteStateMachine fsm)
    {
        Debug.Log("On Iddle State");
        fsm.GetComponent<Rigidbody>().velocity = new Vector3(0f, 0f, 0f); 
    }
}