コード例 #1
0
    void Awake()
    {
        _manuModel = new ManuModel(name, description, button, cost);
        _manuModel.GetManuView().GetManufactureButton().onClick.AddListener(Manufactureing);

        _manufacture = new List <Manufacture>();
        _manufacture.Add(new Manufacture("Machineguns", "You can build machineguns", AllManufacture.Machinegun, 10));
        _manufacture.Add(new Manufacture("Rockets", "Make rockets", AllManufacture.Rockets, 10));
        _manufacture.Add(new Manufacture("Fuel", "Make fuel for engines", AllManufacture.Fuel, 2));
    }
コード例 #2
0
 // Use this for initialization
 void Awake()
 {
     manuModel = new ManuModel();
     inven     = new Inventory();
 }
コード例 #3
0
 void Awake()
 {
     _manuModel = new ManuModel(itemName, description, button, cost);
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     manuModel = manuController.GetManuModel();
     UpdateViews();
 }