Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / FSM / Actions / ModelTransformsControlEntryAction.cs
@Rackday Rackday on 21 Aug 493 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [CreateAssetMenu(menuName = "Finite State Machine/Action/Model Transform Control Entry Action")]
  5. public class ModelTransformsControlEntryAction : Action
  6. {
  7. public override void Act(FiniteStateMachine fsm)
  8. {
  9. fsm.animationController.gameObject.transform.eulerAngles = Vector3.zero;
  10. Debug.Log(fsm.animationController.gameObject.transform.eulerAngles);
  11. Debug.Log("Correction");
  12. }
  13. }