Exemple #1
0
    void Start()
    {
        shopCursor = gameObject.transform.Find("shopCursor").gameObject;

        buildManager          = BuildManagerScript.instance;
        newShopCursorPosition = shopCursor.transform.position;
    }
Exemple #2
0
 // 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;
     }
 }
Exemple #6
0
 void Awake()
 {
     instance = this;
 }
Exemple #7
0
 // Start is called before the first frame update
 //Sets build manager on start
 void Start()
 {
     buildManager = BuildManagerScript.instance;
 }
Exemple #8
0
 // 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;
 }
Exemple #10
0
 // Start is called before the first frame update
 void Start()
 {
     _renderer          = GetComponent <Renderer>();
     startColor         = _renderer.material.color;
     buildManagerScript = BuildManagerScript.instance;
 }