Ejemplo n.º 1
0
        private void Supply(SupplyType supplyType)
        {
            if (SupplyManager.Supply(supplyType, out bool use_baux))
            {
                if (use_baux)
                {
                    animateBauxite(_bauxiteMsgSuccess);
                }
            }
            else if (use_baux)
            {
                animateBauxite(_bauxiteMsgIncomplete);
            }
            SingletonMonoBehaviour <UIPortFrame> .Instance.UpdateHeaderInfo(SupplyManager);

            Instance.UpdateSupplyManager();
        }
Ejemplo n.º 2
0
        private void OnDesideSupply()
        {
            App.OnlyController = key;
            bool use_baux;
            bool flag = SupplyMng.Supply(SupplyType.All, out use_baux);

            UpdateView(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
            if (flag && use_baux)
            {
                BauxiSuccess.Play();
            }
            else if (!flag && use_baux)
            {
                BauxiField.Play();
            }
            ShipModel model = (FocusBanner.ShipModel == null) ? CurrentDeck.GetFlagShip() : FocusBanner.ShipModel;

            ShipUtils.PlayShipVoice(model, 27);
            ModeProcessor.ChangeMode(0);
        }