void Start() { shopCursor = gameObject.transform.Find("shopCursor").gameObject; buildManager = BuildManagerScript.instance; newShopCursorPosition = shopCursor.transform.position; }
// Use this for initialization void Start() { rend = GetComponent <Renderer>(); startColor = rend.material.color; noMoney = Color.red; buildManager = BuildManagerScript.instance; }
void Awake() { if (instance != null) { Debug.LogError("Why do we have more than 1 build manager???"); return; } instance = this; }
//Checks for multiple instances of BuildManager, else assigns it private void Awake() { if (instance != null) { Debug.LogError("More than one BuildManager found!"); return; } instance = this; }
void Awake() { nodeUI = GameObject.Find("NodeUI").GetComponent <NodeUI>(); if (instance != null) { print("There is already a build Manager !"); return; } else { instance = this; } }
void Awake() { instance = this; }
// Start is called before the first frame update //Sets build manager on start void Start() { buildManager = BuildManagerScript.instance; }
// Start is called before the first frame update //Assigns renderObj as a renderer to correctly display colors. Also assigns startColor and buildManager as their intended default values. void Start() { renderObj = GetComponent <Renderer>(); startColor = renderObj.material.color; buildManager = BuildManagerScript.instance; }
private void Start() { buildManagerScript = BuildManagerScript.instance; }
// Start is called before the first frame update void Start() { _renderer = GetComponent <Renderer>(); startColor = _renderer.material.color; buildManagerScript = BuildManagerScript.instance; }