Example #1
0
        void FixedUpdate()
        {
            if (!IsInit)
            {
                return;
            }

            if (LifeSupport.Status.GetCondition(eSystemState.OFFLINE) || LifeSupport.Status.GetCondition(eSystemState.INVALID))
            {
                Controls.movement = Vector2.zero;
                Controls.turn     = 0f;
            }

            FlightComputer.SetInput(Controls.movement.x, Controls.turn);

            if (LifeSupport.Status.GetCondition(eSystemState.OFFLINE) || LifeSupport.Status.GetCondition(eSystemState.INVALID))
            {
                Controls.attack  = false;
                Controls.special = false;
            }

            TacticalComputer.SetInput(Controls.attack, Controls.special, null);
        }
 public void Setup()
 {
     Player = new TacticalComputer();
 }