コード例 #1
0
ファイル: HomeState.cs プロジェクト: Bjornaahr/island-warfare
    // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        cdm = animator.GetComponent <CitizenDestinationManager>();
        cdm.CitizenStateManager(animator, stateInfo, "Home");

        cdm.SleepAgent();
    }
コード例 #2
0
 // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     cdm = animator.GetComponent <CitizenDestinationManager>();
 }