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