public void FinishBarrelRollAnimation() { performingAnimation = false; TheShip.ApplyRotationHelpers(); TheShip.ResetRotationHelpers(); TheShip.SetAngles(TemporaryShipBase.transform.eulerAngles); MonoBehaviour.DestroyImmediate(TemporaryShipBase); GameManagerScript Game = GameObject.Find("GameManager").GetComponent <GameManagerScript>(); Game.Movement.CollidedWith = null; MovementTemplates.HideLastMovementRuler(); TheShip.ToggleShipStandAndPeg(true); TheShip.FinishPosition(FinishBarrelRollAnimationPart2); }
public void FinishDecloakAnimation() { performingAnimation = false; TheShip.ApplyRotationHelpers(); TheShip.ResetRotationHelpers(); TheShip.SetAngles(TemporaryShipBase.transform.eulerAngles); TheShip.Model.transform.localPosition = new Vector3(TheShip.Model.transform.localPosition.x, 0, TheShip.Model.transform.localPosition.z); MonoBehaviour.Destroy(TemporaryShipBase); GameManagerScript Game = GameObject.Find("GameManager").GetComponent <GameManagerScript>(); Game.Movement.CollidedWith = null; MovementTemplates.HideLastMovementRuler(); MovementTemplates.CurrentTemplate.gameObject.SetActive(true); Selection.ThisShip.ToggleShipStandAndPeg(true); Selection.ThisShip.FinishPosition(FinishDecloakAnimationPart2); }