| | |
| | | public static bool isDefaultState { get; private set; }
|
| | | public static event Action<bool> switchFunctionStateEvent;
|
| | |
|
| | | float resetToDefaultTimer = 0;
|
| | | static float resetToDefaultTimer = 0;
|
| | | public static void SetRecoverToSkillTimer()
|
| | | {
|
| | | resetToDefaultTimer = 20f;
|
| | | }
|
| | |
|
| | | public void SwitchFunctions(SwitchParam switchParams)
|
| | | {
|
| | | if (switchParams.manual && switchParams.showDefault)
|
| | | {
|
| | | resetToDefaultTimer = 0f;
|
| | | }
|
| | | ProcessSwitch(switchParams);
|
| | | } |
| | | |
| | |
| | | break;
|
| | | }
|
| | |
|
| | | var rightBottomState = switchParams.showDefault && !isGuiding && !treasureModel.newGotShowing ? RightBottomState.Skill : RightBottomState.Function;
|
| | | var rightBottomState = resetToDefaultTimer <= 0f
|
| | | && switchParams.showDefault
|
| | | && !isGuiding
|
| | | && !treasureModel.newGotShowing ? RightBottomState.Skill : RightBottomState.Function;
|
| | |
|
| | | switch (rightBottomState)
|
| | | {
|
| | | case RightBottomState.Function:
|
| | |
| | | }
|
| | |
|
| | | isDefaultState = rightBottomState == RightBottomState.Skill;
|
| | | resetToDefaultTimer = !isDefaultState ? 7f : 0f;
|
| | | resetToDefaultTimer = !isDefaultState ? 20f : 0f;
|
| | | m_RayMask.gameObject.SetActive(!isDefaultState);
|
| | |
|
| | | if (switchParams.immediately)
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | SwitchFunctions(new SwitchParam()
|
| | | {
|
| | | immediately = false,
|
| | | showDefault = true,
|
| | | });
|
| | | resetToDefaultTimer = 0.0001f;
|
| | | } |
| | | |
| | | private void OnSwitchAccount()
|
| | |
| | | {
|
| | | public bool showDefault;
|
| | | public bool immediately;
|
| | | public bool manual;
|
| | | } |
| | | |
| | | } |