Exemple #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();
        }
Exemple #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); });
            }
        }
Exemple #3
0
        protected override void PlayTakeoffAnimation()
        {
            Animation animation = HostShip.GetModelTransform().Find("Hyena-class Droid Bomber/Body").GetComponent <Animation>();

            animation.Play("HyenaTakeoff");
        }
Exemple #4
0
        protected virtual void PlayTakeoffAnimation()
        {
            Animation animation = HostShip.GetModelTransform().Find("Vulture/Body").GetComponent <Animation>();

            animation.Play("Takeoff");
        }