public static RessourceHoldBase getInstance() { if (instance == null) { instance = new RessourceHoldBase(); } return instance; }
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(); }