예제 #1
0
        public PeriodicAction CreateAction(TimeSpan interval, Action action)
        {
            VirtualAction newAction = new VirtualAction(interval, action, this.currentTime);

            this.actions.Add(newAction);
            return(newAction);
        }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     act = gameObject.GetComponent <VirtualAction>();
 }
예제 #3
0
 private void Start()
 {
     droneAction   = drone.GetComponent <DroneAction>();
     virtualAction = drone.GetComponent <VirtualAction>();
 }