Esempio n. 1
0
    public override void OnMouseClick(Vector3 position)
    {
        var evnt = SpawnEvent.Create();

        evnt.TowerType = (int)_data.towerType;
        evnt.Position  = GridManager.Instance.GetCellCenterFromPosition(position);
        evnt.Send();
        InteractionManager.Instance.EndInteraction();
    }