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

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

            animation.Play("Takeoff");
        }