Exemplo n.º 1
0
        private void FlipThisCard(object sender, EventArgs e)
        {
            DecisionSubPhase.ConfirmDecisionNoCallback();

            HostShip.TogglePeg(false);

            PlayLandingAnimation();

            HostShip.GetModelCenterTransform().localPosition -= new Vector3(0, 2, 0);
            HostShip.GetModelTransform().localPosition       += new Vector3(0, 2, 0);
            HostShip.IsLandedModel = true;

            (HostUpgrade as GenericDualUpgrade).Flip();

            Triggers.FinishTrigger();
        }
Exemplo n.º 2
0
        private void CheckSpecialManeuvers(GenericShip ship)
        {
            if (HostShip.RevealedManeuver == null)
            {
                return;
            }

            if (!RevealedManeuverIs2FS() && IsOnObstacle())
            {
                RegisterOwnTrigger();
            }
            else
            {
                PlayTakeoffAnimation();

                HostShip.GetModelCenterTransform().localPosition += new Vector3(0, 2, 0);
                HostShip.GetModelTransform().localPosition       -= new Vector3(0, 2, 0);
                HostShip.IsLandedModel = false;

                GameManagerScript.Wait(0.5f, delegate { HostShip.TogglePeg(true); });
            }
        }