コード例 #1
0
        /// <summary>
        /// Switches to a new sequence branch. This also resets the current step
        /// </summary>
        /// <param name="newBranch">The new branch to switch to</param>
        protected void ChangeSequenceBranch(SequenceBranch newBranch)
        {
            //Debug.LogWarning($"Changing from {CurBranch} to {newBranch}");

            CurBranch = newBranch;

            //Set to -1 as it'll be incremented next time the sequence progresses
            SequenceStep = -1;
        }
コード例 #2
0
 /// <summary>
 /// Sets the branch to jump to after the current sequence updates
 /// </summary>
 /// <param name="newJumpBranch">The new branch to jump to</param>
 protected void ChangeJumpBranch(SequenceBranch newJumpBranch)
 {
     JumpToBranch = newJumpBranch;
 }