예제 #1
0
    void GameObjectSelection()
    {
        if (_goSelector == null)
        {
            return;
        }

        if (Input.GetMouseButtonDown(0))
        {
            var selected = _goSelector.SelectGameObject(LayerMask.NameToLayer("Tower"));
            if (selected != null)
            {
                _towerManager.ActivateTowerAttackRange(selected.GetInstanceID());
            }
        }
    }