コード例 #1
0
    public ManagerController(List <Manager> managerEntries, ManagerView managerView)
    {
        ManagerView = managerView;

        Dictionary <Manager, Button> buttons = ManagerView.PrepareManagerEntriesAndButtons(managerEntries);

        foreach (KeyValuePair <Manager, Button> keyValuePair in buttons)
        {
            keyValuePair.Value.onClick.AsObservable().Subscribe(x => BuyManager(keyValuePair.Key));
        }
    }