コード例 #1
0
ファイル: SmartCharacter.cs プロジェクト: fgeraci/CS195-Core
 /// <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))))
     
     );
 }