コード例 #1
0
 private void OnDestroy()
 {
     if (_stateMachine != null)
     {
         _stateMachine.UnInit();
         _stateMachine = null;
     }
 }
コード例 #2
0
    private void Awake()
    {
        _stateMachine = new CommonStateMachine();
        _stateMachine.Init();

        if (motionAttribute == null)
        {
            motionAttribute = this.GetComponent <PlayerMotionAttribute>();
        }
    }