Пример #1
0
        private void DrawAbilityTooltip()
        {
            if (_gameplayManager.IsTutorial)
            {
                return;
            }

            if (_currentOverlordAbilityInfoObject != null)
            {
                return;
            }

            GameClient.Get <ICameraManager>().FadeIn(0.8f, 1);

            Vector3 position;

            if (Owner.IsLocalPlayer)
            {
                if (IsPrimary)
                {
                    position = new Vector3(4f, 0.5f, 0);
                }
                else
                {
                    position = new Vector3(-4f, 0.5f, 0);
                }
            }
            else
            {
                if (IsPrimary)
                {
                    position = new Vector3(4f, -1.15f, 0);
                }
                else
                {
                    position = new Vector3(-4f, -1.15f, 0);
                }
            }

            _currentOverlordAbilityInfoObject = new OverlordAbilityInfoObject(Skill, SelfObject.transform, position);
        }
Пример #2
0
        public void Update()
        {
            if (!_gameplayManager.IsGameplayReady())
            {
                return;
            }
            {
                _pointerEventSolver.Update();

                if (Input.GetMouseButtonDown(0))
                {
                    if (_currentOverlordAbilityInfoObject != null)
                    {
                        GameClient.Get <ICameraManager>().FadeOut(level: 1);

                        _currentOverlordAbilityInfoObject.Dispose();
                        _currentOverlordAbilityInfoObject = null;
                    }
                }
            }
        }