예제 #1
0
 public override StateAction hydrate <T>(T source)
 {
     this.controlledState = source as Galaxy.State.AppearablePositionState;
     if (this.controlledState == null)
     {
         Debug.LogError("couldnt coerce source to AppearableState" + " " + source);
     }
     lineRenderer = util.Line.DrawTempLine(controlledState.position, targetVector, Color.green);
     base._Init();
     return(this);
 }
예제 #2
0
 public MoveToPoint Init(Galaxy.State.AppearablePositionState controlledState, float speed, float stopDistance, Vector3 targetVector)
 {
     this.targetVector    = targetVector;
     this.distance        = stopDistance;
     this.speed           = speed;
     this.controlledState = controlledState;
     if (controlledState.isActive)
     {
         lineRenderer = util.Line.DrawTempLine(controlledState.position, targetVector, Color.green, 3);
     }
     base._Init();
     return(this);
 }