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

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

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

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