Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / FSM / Actions / ModelTransformsControlEntryAction.cs
@Rackday Rackday on 21 Aug 493 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "Finite State Machine/Action/Model Transform Control Entry Action")]
public class ModelTransformsControlEntryAction : Action
{
    public override void Act(FiniteStateMachine fsm)
    {
        fsm.animationController.gameObject.transform.eulerAngles = Vector3.zero;
        Debug.Log(fsm.animationController.gameObject.transform.eulerAngles);
        Debug.Log("Correction");
    }
}