public override void Process(Action _action, Track _track) { FightForm fightForm = Singleton <CBattleSystem> .GetInstance().FightForm; if (fightForm != null) { GameObject moveJoystick = fightForm.GetMoveJoystick(); if (moveJoystick == null) { return; } bool bActive = !this.bForbid; CUIJoystickScript component = moveJoystick.GetComponent <CUIJoystickScript>(); if (component) { component.ResetAxis(); } moveJoystick.CustomSetActive(bActive); component = moveJoystick.GetComponent <CUIJoystickScript>(); if (component) { component.ResetAxis(); } if (this.bForbid && Singleton <CBattleSystem> .GetInstance().FightForm != null && Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager != null) { for (int i = 0; i < 5; i++) { Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager.SkillButtonUp(Singleton <CBattleSystem> .GetInstance().FightFormScript, (SkillSlotType)i, false, default(Vector2)); } } } }
public override void Process(AGE.Action _action, Track _track) { GameObject obj2 = (Singleton <CBattleSystem> .GetInstance().FightFormScript == null) ? null : Singleton <CBattleSystem> .GetInstance().FightFormScript.gameObject; if (obj2 != null) { GameObject gameObject = obj2.transform.FindChild("Joystick").gameObject; bool bActive = !this.bForbid; CUIJoystickScript component = gameObject.GetComponent <CUIJoystickScript>(); if (component != null) { component.ResetAxis(); } gameObject.CustomSetActive(bActive); component = gameObject.GetComponent <CUIJoystickScript>(); if (component != null) { component.ResetAxis(); } if ((this.bForbid && (Singleton <CBattleSystem> .GetInstance().FightForm != null)) && (Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager != null)) { for (int i = 0; i < 5; i++) { Vector2 screenPosition = new Vector2(); Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager.SkillButtonUp(Singleton <CBattleSystem> .GetInstance().FightFormScript, (SkillSlotType)i, false, screenPosition); } } } }
private void OnLeftAxisChanged(CUIEvent uiEvent) { CUIJoystickScript cUIJoystickScript = uiEvent.m_srcWidgetScript as CUIJoystickScript; if (cUIJoystickScript != null) { this.m_leftAxisFromUI = cUIJoystickScript.GetAxis(); } }
private void OnCameraAxisChanged(CUIEvent uiEvent) { Player hostPlayer = Singleton <GamePlayerCenter> .instance.GetHostPlayer(); if (hostPlayer != null && hostPlayer.Captain && hostPlayer.Captain.handle.ActorControl != null && !hostPlayer.Captain.handle.ActorControl.IsDeadState) { CUIJoystickScript cUIJoystickScript = uiEvent.m_srcWidgetScript as CUIJoystickScript; if (cUIJoystickScript != null) { this.m_cameraAxisFromUI = cUIJoystickScript.GetAxis(); } } }
private void OnMiniMap_Click_Down(CUIEvent uievent) { if (Singleton <WatchController> .instance.IsWatching) { return; } this.m_ClickDownStatus = true; if (Singleton <CBattleSystem> .GetInstance().FightForm != null) { CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager; SkillSlotType skillSlotType; if (skillButtonManager != null && skillButtonManager.HasMapSlectTargetSkill(out skillSlotType)) { CUIJoystickScript joystick = Singleton <CBattleSystem> .GetInstance().FightForm.GetJoystick(); if (joystick != null) { joystick.ChangeJoystickResponseArea(true); } } } }