Exemple #1
0
        public static PlayerPostureNode New(string name, PlayerPosture posture, Precondition precondition = null)
        {
            var node = Node.MakeNode <PlayerPostureNode>(name, precondition);

            node.posture = posture;
            return(node);
        }
 void OnPostureChanged(PlayerPosture newPosture)
 {
     if (_posture == newPosture)
     {
         return;
     }
     _posture       = newPosture; // Status will be updated in the next frame
     _isStatusDirty = true;
 }