示例#1
0
        public override void Start()
        {
            base.Start();

            Name         = "Remote Setup SubPhase";
            inReposition = false;

            GenericRemote remote = ShipFactory.SpawnRemote(
                (GenericRemote)Activator.CreateInstance(RemoteType, RemoteOwner),
                Vector3.zero,
                new Quaternion(0, 0, 0, 0)
                );

            Selection.ThisShip = remote;

            if (RemoteOwner is HumanPlayer)
            {
                ShowSubphaseDescription(DescriptionShort, DescriptionLong, ImageSource);
            }

            Board.ToggleOffTheBoardHolder(true);

            StartDrag();

            Roster.GetPlayer(RequiredPlayer).SetupRemote();
        }
示例#2
0
        private void ShowRemoteAndDropTemplate(ManeuverTemplate bombDropTemplate)
        {
            bombDropTemplate.ApplyTemplate(Selection.ThisShip, Selection.ThisShip.GetBack(), Direction.Bottom);

            Vector3    bombPosition = bombDropTemplate.GetFinalPosition();
            Quaternion bombRotation = bombDropTemplate.GetFinalRotation();

            // TODO: get type of remote from upgrade
            ShipFactory.SpawnRemote(
                (GenericRemote)Activator.CreateInstance(BombsManager.CurrentDevice.UpgradeInfo.RemoteType, Selection.ThisShip.Owner),
                bombPosition,
                bombRotation
                );

            SelectedBombDropHelper = bombDropTemplate;
        }