Example #1
0
        void OnRightClickCursorDown(Vector3 cursorPos)
        {
            Vector3 position = GameControl.ClickOnTerrain(cursorPos);

            if (selectedTower != null && selectedTower.IsHero())
            {
                ((UnitHero)selectedTower).agent.destination = position;
            }
        }