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(); }
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); }); } }
protected override void PlayTakeoffAnimation() { Animation animation = HostShip.GetModelTransform().Find("Hyena-class Droid Bomber/Body").GetComponent <Animation>(); animation.Play("HyenaTakeoff"); }
protected virtual void PlayTakeoffAnimation() { Animation animation = HostShip.GetModelTransform().Find("Vulture/Body").GetComponent <Animation>(); animation.Play("Takeoff"); }