Ejemplo n.º 1
0
    int rank; //角色当前排名

    #endregion Fields

    #region Constructors

    public Player(string player_name,int rank,Vector2 player_pos,KeyControl keyControl)
    {
        this.player_name=player_name;
        this.rank=rank;
        this.player_pos=player_pos;
        this.keyControl=keyControl;
    }
Ejemplo n.º 2
0
 internal KeyControl GetKeyController()
 {
     if (mKEyController == null)
     {
         mKEyController = new KeyControl();
     }
     return(mKEyController);
 }
 private void Awake()
 {
     this.TweenPos = base.GetComponent <TweenPosition>();
     this.MenuBox  = base.get_transform().FindChild("MenuBox");
     this.isShow   = false;
     this.CancelTouch.set_enabled(false);
     this.key = new KeyControl(0, 0, 0.4f, 0.1f);
 }
Ejemplo n.º 4
0
        private void OnStartSuccessRevampAnimation(RevampContext context)
        {
            _isTop = true;
            UIRevampIcon revampIcon = Util.Instantiate(mPrefab_RevampIcon.gameObject, base.gameObject).GetComponent <UIRevampIcon>();

            revampIcon.Initialize(context.GetBeforeSlotItemInfo().MstId, context.GetBeforeSlotItemInfo().Level, mCameraProduction);
            revampIcon.StartRevamp(context.GetAfterSlotItemInfo().MstId, context.GetAfterSlotItemInfo().Level, context.GetAfterSlotItemInfo().Name, delegate
            {
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
                mRevampAkashi.ChangeBodyTo(UIRevampAkashi.BodyType.Normal);
                _isAnimation = false;
                string empty = string.Empty;
                PlayAkashiVoice(mAudioClip_308);
                empty += "[000000]改修成功しました。";
                empty += "\n";
                empty += $"[329ad6]{mRevampContext.GetAfterSlotItemInfo().Name}[-]";
                mParticleSystem_SuccessStars.Play(false);
                if (SingletonMonoBehaviour <UIPortFrame> .exist())
                {
                    SingletonMonoBehaviour <UIPortFrame> .Instance.isColliderEnabled = true;
                }
                TrophyUtil.Unlock_AlbumSlotNum();
                if (mRevampContext.IsModelChange())
                {
                    SoundUtils.PlaySE(mAudioClip_SE_023);
                }
                else
                {
                    SoundUtils.PlaySE(mAudioClip_SE_021);
                }
                KeyControl keyController = mRevampInfoBalloon.SayMessage(empty, delegate
                {
                    if (mRevampContext.ConsortShip != null)
                    {
                        mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f);
                    }
                    mRevampInfoBalloon.alpha = 1f;
                    UnityEngine.Object.Destroy(revampIcon.gameObject);
                    mRevampInfoBalloon.SayMessage("[000000]どの装備の改修を試みますか?");
                    mRevampManager.GetDetail(mRevampContext.RevampRecipe.RecipeId, mRevampContext.GetBeforeSlotItemInfo().MemId);
                    RevampRecipeModel[] recipes = mRevampManager.GetRecipes();
                    int num = 0;
                    RevampRecipeModel[] array = recipes;
                    foreach (RevampRecipeModel revampRecipeModel in array)
                    {
                        if (revampRecipeModel.RecipeId == mRevampContext.RevampRecipe.RecipeId)
                        {
                            break;
                        }
                        num++;
                    }
                    KeyControl keyController2 = (num > recipes.Length) ? ShowUIRevampRecipeList(0) : ShowUIRevampRecipeList(num);
                    ChangeFocusKeyController(keyController2);
                });
                ChangeFocusKeyController(keyController);
                mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f);
            });
        }
Ejemplo n.º 5
0
 private void Awake()
 {
     _clsInput      = new KeyControl();
     _iRecoveryType = ShipRecoveryType.None;
     _clsTasks      = this.SafeGetComponent <SceneTasksMono>();
     _clsTasks.Init();
     _iMode = (_iModeReq = SortieBattleMode.SortieBattleMode_BEF);
     _camTransitionCamera.enabled = false;
 }
 public KeyControl GetKeyController()
 {
     if (mKeyController == null)
     {
         mKeyController = new KeyControl(0, 2);
         mKeyController.setChangeValue(0f, 1f, 0f, -1f);
     }
     return(mKeyController);
 }
 public void firstInit()
 {
     KeyController      = new KeyControl();
     _shipBanner.alpha  = 0f;
     _slotItemTex.alpha = 0f;
     mArsenalManager    = ArsenalTaskManager.GetLogicManager();
     _breakMaterialManager.init();
     Close();
 }
Ejemplo n.º 8
0
 protected override void OnCallDestroy()
 {
     base.OnCallDestroy();
     this.mRevampManager                     = null;
     this.mOnSelectedRecipeListener          = null;
     this.mOnFinishedSlotInAnimationListener = null;
     this.mOnBackListener                    = null;
     this.mKeyController                     = null;
 }
Ejemplo n.º 9
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref mButton_ChangeItemList);
     mCamera_SwipeEvent     = null;
     mUIItemStoreBuyConfirm = null;
     mUIItemStoreChildren   = null;
     mItemStoreManager      = null;
     mKeyController         = null;
 }
Ejemplo n.º 10
0
 public void Init(KeyControl key)
 {
     keyContoroller = key;
     keyContoroller.setMinMaxIndex(0, menuParts.Length - 1);
     keyContoroller.Index = 0;
     nowRotateZ           = new float[menuParts.Length];
     upperNo  = menuParts.Length - 3;
     footerNo = menuParts.Length - 4;
 }
Ejemplo n.º 11
0
 public new KeyControl Show()
 {
     base.Show();
     mTransform_Contents.transform.localScale = new Vector3(0.5f, 0.5f);
     mTransform_Contents.transform.DOScale(Vector3.one, 0.3f);
     mKeyController = new KeyControl();
     PlayKiraAnimation();
     return(mKeyController);
 }
 public KeyControl Show()
 {
     base.Show();
     this.mTransform_Contents.get_transform().set_localScale(new Vector3(0.5f, 0.5f));
     ShortcutExtensions.DOScale(this.mTransform_Contents.get_transform(), Vector3.get_one(), 0.3f);
     this.mKeyController = new KeyControl(0, 0, 0.4f, 0.1f);
     this.PlayKiraAnimation();
     return(this.mKeyController);
 }
 public void firstInit()
 {
     this.KeyController      = new KeyControl(0, 0, 0.4f, 0.1f);
     this._shipBanner.alpha  = 0f;
     this._slotItemTex.alpha = 0f;
     this.mArsenalManager    = ArsenalTaskManager.GetLogicManager();
     this._breakMaterialManager.init();
     base.Close();
 }
 public void SetKeyController(KeyControl keyController)
 {
     if (keyController != null)
     {
         keyController.ClearKeyAll();
         keyController.firstUpdate = true;
     }
     this.mKeyController = keyController;
 }
 private void Awake()
 {
     base.get_transform().localPositionY(UIHowToRevamp.HidePos.y);
     this.model         = new SettingModel();
     this.keyController = new KeyControl(0, 0, 0.4f, 0.1f);
     this.now_mode      = true;
     this.SpriteButtonX.get_transform().set_localScale(Vector3.get_one());
     this.SpriteButtonShikaku.get_transform().localPositionX(469f);
 }
Ejemplo n.º 16
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mWidget_SliderBackground);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mWidget_SliderLimit);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mLabel_Index);
     this.mUIRemodelShipSliderThumb_Thumb = null;
     this.mDeckModel     = null;
     this.mKeyController = null;
 }
Ejemplo n.º 17
0
 protected override void OnSelect(OrganizeScrollListChild view)
 {
     if (view.GetModel() != null && isOpen)
     {
         _OnSelectCallBack(view.GetModel());
         mKeyController = null;
         LockControl();
     }
 }
Ejemplo n.º 18
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref mButton_BattlePractice);
     UserInterfacePortManager.ReleaseUtils.Release(ref mButton_DeckPractice);
     UserInterfacePortManager.ReleaseUtils.Release(ref mButtonTarget);
     mKeyController        = null;
     mDeckModel            = null;
     mMenuSelectedCallBack = null;
 }
 public void Close()
 {
     if (this.mKeyController != null && this.mKeyController.IsRun)
     {
         base.Hide(this.mClosedCallBack);
         this.mKeyController = null;
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
     }
 }
Ejemplo n.º 20
0
 private void OnDestroy()
 {
     anim           = null;
     AnimationTypes = null;
     MonthBonus     = null;
     WeekBonus      = null;
     dayText        = null;
     key            = null;
 }
 public override void SetKeyController(KeyControl keyController)
 {
     if (keyController != null)
     {
         keyController.firstUpdate = true;
         keyController.ClearKeyAll();
     }
     base.SetKeyController(keyController);
 }
 private void SetKeyController(KeyControl keyController)
 {
     if (keyController != null)
     {
         keyController.ClearKeyAll();
         keyController.firstUpdate = true;
     }
     mKeyController = keyController;
 }
Ejemplo n.º 23
0
 private void OnDestroy()
 {
     mDeckPracticeTypeSelect = null;
     mStateManager           = null;
     mPracticeManager        = null;
     mKeyController          = null;
     mOnBackListener         = null;
     mDeckPracticeContext    = null;
 }
Ejemplo n.º 24
0
 protected override void OnCallDestroy()
 {
     base.OnCallDestroy();
     mItemStoreManager    = null;
     mKeyController       = null;
     mOnSelectListener    = null;
     mTransform_ArrowDown = null;
     mTransform_ArrowUp   = null;
 }
 protected override void OnCallDestroy()
 {
     base.OnCallDestroy();
     MessageSlot             = null;
     mArsenalManager         = null;
     mOnBackListener         = null;
     mKeyController          = null;
     mOnItemSelectedListener = null;
 }
Ejemplo n.º 26
0
 public void Close()
 {
     if (mKeyController != null && mKeyController.IsRun)
     {
         Hide(mClosedCallBack);
         mKeyController = null;
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
     }
 }
Ejemplo n.º 27
0
 public void SetKeyController(KeyControl key, KeyControl stickkey)
 {
     this.key = key;
     StickKey = stickkey;
     if (key == null && isShow)
     {
         Hide();
     }
 }
Ejemplo n.º 28
0
 private void Awake()
 {
     SortieBattleTaskManager._clsInput      = new KeyControl(0, 0, 0.4f, 0.1f);
     SortieBattleTaskManager._iRecoveryType = ShipRecoveryType.None;
     SortieBattleTaskManager._clsTasks      = this.SafeGetComponent <SceneTasksMono>();
     SortieBattleTaskManager._clsTasks.Init();
     SortieBattleTaskManager._iMode = (SortieBattleTaskManager._iModeReq = SortieBattleMode.SortieBattleMode_BEF);
     this._camTransitionCamera.set_enabled(false);
 }
Ejemplo n.º 29
0
 protected override void OnCallDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_Header, false);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mLabel_Genre);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_TouchBackArea, false);
     this.mKeyController      = null;
     this.mOnSelectedListener = null;
     this.mOnChangedListener  = null;
     this.mOnBackListener     = null;
 }
Ejemplo n.º 30
0
        private bool UpdateTouchMode(object data)
        {
            KeyControl keyControl = BattleTaskManager.GetKeyControl();

            if (keyControl.IsAnyKey)
            {
                return(OnTouchModeFinished());
            }
            return(false);
        }
Ejemplo n.º 31
0
 private void OnDestroy()
 {
     this.SpriteStickR  = null;
     this.SpriteButtonX = null;
     this.SpriteButtonL = null;
     this.SpriteButtonO = null;
     this.key           = null;
     this.model         = null;
     this._uil          = null;
 }
Ejemplo n.º 32
0
 void Awake()
 {
     for(int i=0;i<StartScript.players.Length;i++){
         print(StartScript.players.Length);
         if(StartScript.players[i].getPlayername()+"(Clone)"==this.name)
             keyControl=StartScript.players[i].getKeyControl();
     }
     anim = GetComponent<Animator>();
     anim.SetBool("inTunnel",false);
     anim.SetBool("timeUp",false);
     groundCheck = transform.Find("groundCheck");
     topCheck = transform.Find("topCheck");
 }
Ejemplo n.º 33
0
    // Update is called once per frame
    void Update()
    {
        myTime = myTime+1;
        print(myTime);
        if(myTime>timeLength){
            print("success");
            keyControl=new KeyControl(KeyCode.UpArrow,KeyCode.DownArrow,"Horizontal");
            players[0]=new Player("hero_spiderman",1,new Vector2(0,0),keyControl);
            keyControl2=new KeyControl(KeyCode.W,KeyCode.S,"Horizontal2");
            players[1]=new Player("hero_batman",2,new Vector2(0,0.01f),keyControl2);

            Application.LoadLevel(nextLevel);
        }
    }
Ejemplo n.º 34
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            ExceptionCatch.ToolName = "VSCOKeys";
            ExceptionCatch.ToolOwner = "*****@*****.**";
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExceptionCatch.HandleException);

            this.TraceLoggingSetup();
            ExceptionCatch.TraceFile = this.traceFilePath;

            string openedFilename = null;
            this.processFileDelegate = new Action<string>(this.ProcessFile);

            if (e.Args != null && e.Args.Length > 0)
            {
                openedFilename = e.Args[0];
            }

            if (!this.HandleProgramSingularity(openedFilename))
            {
                return;
            }

            this.UpgradeSettingsFile();

            Application.Current.ShutdownMode = System.Windows.ShutdownMode.OnExplicitShutdown;

            App.SetAllowUnsafeHeaderParsing20();

            this.KeyControl = new KeyControl();

            if (!this.KeyControl.Initialize())
            {
                return;
            }

            this.KeyControl.statusThread = new BackgroundWorker();

            this.KeyControl.statusThread.DoWork += new DoWorkEventHandler(statusThread_DoWork);
            this.KeyControl.statusThread.RunWorkerAsync();

            this.KeyControl.StartUpEventLoop();

            this.ProcessFile(openedFilename);
        }
Ejemplo n.º 35
0
 public static void MapKey(KeyControl control, Keys key)
 {
     controlsToKeys[(int)control] = key;
 }
Ejemplo n.º 36
0
    void Start()
    {
        instance = this;
        transform.localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, ZPOSActual);
        //lineRenderer = GetComponent<LineRenderer>();
        //lineRenderer.SetWidth(laserWidth, laserWidth);
        //		if(camara.Equals(CamaraOption.FirstPerson)){
        if (primeraPersona){
            mouseLock.minimumY = 0F;
            mouseLock.maximumY = 90F;
        }
        else{
            mouseLock.minimumY = 0F;
            mouseLock.maximumY = 0F;
        }

        if (LobbyGUI.currentActiveRoom.Name.Equals("Camarin")){
            lineRenderer.enabled = false;
        }else
            lineRenderer.enabled = true;
    }
Ejemplo n.º 37
0
 public static bool IsControlHeld(KeyControl control)
 {
     return controlHold[(int)control];
 }
Ejemplo n.º 38
0
 public static bool IsControlReleased(KeyControl control)
 {
     return controlRelease[(int)control];
 }
Ejemplo n.º 39
0
 public void setKeyControl(KeyControl keyControl)
 {
     this.keyControl=keyControl;
 }
Ejemplo n.º 40
0
 public static bool IsControlPressed(KeyControl control)
 {
     return controlPress[(int)control];
 }