示例#1
0
        private void Awake()
        {
            DevPlus.onClick.AddListener(() => PublicModel.Allocate(Units.Developer));
            DevMinus.onClick.AddListener(() => PublicModel.Deallocate(Units.Developer));

            MarketingPlus.onClick.AddListener(() => PublicModel.Allocate(Units.Marketer));
            MarketingMinus.onClick.AddListener(() => PublicModel.Deallocate(Units.Marketer));

            LobbyingPlus.onClick.AddListener(() => PublicModel.Allocate(Units.Lobbyist));
            LobbyingMinus.onClick.AddListener(() => PublicModel.Deallocate(Units.Lobbyist));

            MLPlus.onClick.AddListener(() => PublicModel.Allocate(Units.CPU));
            MLMinus.onClick.AddListener(() => PublicModel.Deallocate(Units.CPU));

            BioPlus.onClick.AddListener(() => PublicModel.Allocate(Units.Bioengineer));
            BioMinus.onClick.AddListener(() => PublicModel.Deallocate(Units.Bioengineer));
        }