void Start() { totalCost = 0; rend = GetComponent <Renderer>(); startColor = rend.material.color; buildManager = Buildmanager.instance; }
void Start() { rend = GetComponent <Renderer>(); Startcolor = rend.material.color; //CREATING AN INSTANCE OF BUILDMANAGER buildManager = Buildmanager.instance; }
// Use this for initialization void Awake() { if (instance != null) { Debug.Log("More than one buildmanager!"); } instance = this; phoneToPlace = standardPhonePrefab; }
void Awake() { if (instance != null) { Debug.Log("MOre than one buildmanager"); return; } instance = this; }
public static Buildmanager instance; //buildmanager inside the buildmanage void Awake() { if (instance != null) { Debug.LogError("Multiple BuildManagers"); return; } instance = this;//Setting buildmanager to this instance }
/// <summary> /// Make's sure there's only one buildManager. Initially sets phone being purchased to null. /// </summary> void Awake() { if (instance != null) { Debug.Log("More than one buildmanager!"); } instance = this; phoneToPlace = null; currentMoney = 20; numPhones = 0; }
void Start() { buildManager = Buildmanager.instance; }