public static RessourceHoldBase getInstance()
    {
        if (instance == null) {
            instance = new RessourceHoldBase();
        }

        return instance;
    }
예제 #2
0
    void Start()
    {
        rhb = RessourceHoldBase.getInstance();

        rhb.addRessource (GameRessources.Wood, 50);
        rhb.addRessource (GameRessources.Metal, 50);

        playerComponent = player.GetComponent<Player> ();
    }
예제 #3
0
 void Start()
 {
     target = GetComponent<Building> ();
     rhb = RessourceHoldBase.getInstance();
 }