示例#1
0
 /// <summary>
 /// ABAS
 /// </summary>
 /// <param name="userA"></param>
 /// <param name="userB"></param>
 /// <param name="myAnims"></param>
 /// <param name="userAnims"></param>
 /// <returns></returns>
 public Node ST_DistractAndSteal(
     SmartCharacter userA,
     SmartCharacter userB) {
         Vector3 origPosition = userB.transform.position;
     return new Sequence(
         userA.Node_WaveTo(this),
         this.Node_OrientTowards(Val.V(() => userA.transform.position)),
         this.Node_GoToUpToRadius(Val.V(() => userA.transform.position), 1.2f),
         new SequenceParallel(
             userB.Node_HeadLook(Val.V(() => this.MarkerHead.position)),
         new SequenceParallel(
                 userA.ST_JustTalk(this),
                 new Sequence(
                     userB.Node_OrientTowards(Val.V(() => this.transform.position)),
                     new LeafWait(2000),
                     this.Steal(userB),
                     new LeafWait(1800),
                     userB.Node_GoTo(Val.V(() => origPosition)),
                     userB.Node_WaveTo(userA),
                     userA.Node_GoToUpToRadius(Val.V(() => userB.transform.position), 1.2f),
                     userB.ST_TalkHappily(userA))))
     
     );
 }
示例#2
0
 /// <summary>
 /// ABAS
 /// </summary>
 /// <param name="userA"></param>
 /// <param name="userB"></param>
 /// <param name="myAnims"></param>
 /// <param name="userAnims"></param>
 /// <returns></returns>
 public Node ST_ConverseThree(
     SmartCharacter userA,
     SmartCharacter userB) {
     return new Sequence(
         new SequenceParallel(
             Node_CallForAttention(userA),
             userA.Node_GoToUpToRadius(Val.V(() => this.transform.position), 1.2f),
             userB.Node_GoToUpToRadius(Val.V(() => this.transform.position), 1.2f)),
             userB.Node_HeadLook(Val.V(() => this.MarkerHead.position)),
             userB.Node_PlayHandGesture(Val<string>.V(() => "Dismiss"), Val<long>.V(() => 2000L)),
         new Sequence(
                 ST_TalkHappily(userA)),
                 new SequenceParallel(
                     userA.Node_OrientTowards(Val.V(() => userB.transform.position)),
                     userB.ST_TalkHappily(this),
                     ST_TalkHappily(userA))
     );
 }