Esempio n. 1
0
    void OnMouseDown()
    {
        var cardsUnderMousePointer = CameraUtils.GetObjectsUnderMouse().ToComponents <Card>();

        if (!cardsUnderMousePointer.IsEmpty())
        {
            return;
        }
        Debug.Log($"Mouse down on {X}, {Y}");
        // this.GetComponent<MissionPopupCreator>().CreatePopup(this);
        //ServiceLocator.GetGameStateTracker().AddMission(new GatherFoodMission());
        //ServiceLocator.GetGameStateTracker().SetMissionSelected(new GatherFoodMission());
    }