/// <summary>
 /// Destroys a generated waypoint. Careful: Also destroys non-generated
 /// waypoints, make sure to only call method with generated ones.
 /// </summary>
 private void DestroyCreatedWaypoint(SmartWaypoint waypoint)
 {
     newlyGeneratedWaypoints.Remove(waypoint);
     ObjectManager.Instance.DeregisterSmartObject(waypoint);
     GameObject.Destroy(waypoint.gameObject);
 }
 public TestGoToEvent(SmartCharacter character, SmartWaypoint waypoint)
     :base(character, waypoint)
 {
     this.character = character;
     this.waypoint = waypoint;
 }
Example #3
0
 public static Node CoerceIntoMoveToTellerZone(
     SmartCharacter coercer,
     SmartCharacter victim,
     SmartWaypoint target)
 {
     return new Sequence(
         ApproachUpTo(coercer, victim, 6.0f),
         BeginCoerce(coercer, victim),
         new LeafAffordance("Approach", victim, target),
         EndCoerce(coercer));
 }