Example #1
0
 // Use this for initialization
 void Start()
 {
     playerShip = gameObject.GetRequiredComponent <Ship>();
     navModule  = gameObject.GetRequiredComponent <NavigationModule>();
     CommandManager.Instance.OnSelection += PlayerTargetSelected;
     CommandManager.Instance.OnMove      += Move;
 }
Example #2
0
 public DecelerationManeuverState(NavigationModule nav)
 {
     navModule = nav;
 }
Example #3
0
 public AccelerationBurnState(NavigationModule nav)
 {
     navModule = nav;
 }
 void Awake()
 {
     playerObject  = GameObject.FindGameObjectWithTag("Player");
     shipNavModule = playerObject.GetRequiredComponent <NavigationModule>();
 }
Example #5
0
 void Awake()
 {
     buttonLabel  = GetComponentInChildren <Text>();
     launchButton = GetComponent <Button>();
     playerNavMod = GameObject.FindGameObjectWithTag("Player").GetComponent <NavigationModule>();
 }
 public IdleState(NavigationModule nav)
 {
     navModule = nav;
 }
Example #7
0
 public InitialManeuverState(NavigationModule nav)
 {
     navModule = nav;
 }