Esempio n. 1
0
    private void Start()
    {
        rend       = GetComponent <Renderer>();
        startColor = rend.material.color;

        buildManager = buildManager.instance;
    }
Esempio n. 2
0
 //i'll be honest i dont think this is used.
 void Awake()
 {
     if (instance = null)
     {
         return;
     }
     instance = this;
 }
Esempio n. 3
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("more then one buildManager is presented!");
     }
     instance = this;
 }
 private void Awake()
 {
     if (instance != null)
     {
         return;
     }
     instance = this;
 }
Esempio n. 5
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one build manager");
     }
     instance = this;
 }
Esempio n. 6
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than once buildManager in scene!");
         return;
     }
     instance = this;
 }
Esempio n. 7
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("Multiple Build Managers");
         return;
     }
     instance = this;
 }
Esempio n. 8
0
    void inSetup()
    {
        aiMap = GetComponent <AIMap> ();

        GameObject temp  = GameObject.Find("resourceManager");
        GameObject temp2 = GameObject.Find("Building Manager");

        rManager = temp.GetComponent <resourceManager> ();
        mManager = temp.GetComponent <marketManager> ();
        bManager = temp2.GetComponent <buildManager> ();

        pInterval   = progressInterval;
        gInterval   = garrisonInterval;
        cu_Interval = cleanupInterval;
        m_Interval  = mineInterval;

        _state = State.Idle;
    }
Esempio n. 9
0
 void Start()
 {
     buildManager = buildManager.instance;
 }
Esempio n. 10
0
 void Awake()
 {
     instance = this;
 }
Esempio n. 11
0
 void Start()
 {
     rend         = GetComponent <Renderer>();
     defaultColor = rend.material.color;
     bm           = buildManager.instance;
 }
Esempio n. 12
0
    // Use this for initialization

    void Start()
    {
        GameObject temp = GameObject.FindGameObjectWithTag("buildManager");

        bManager = temp.GetComponent <buildManager> ();
    }
Esempio n. 13
0
 private void Start()
 {
     bManager = buildManager.instance;
 }
Esempio n. 14
0
 private void Start()
 {
     buildManager      = buildManager.instance;
     standardCost.text = string.Format("${0}", standardTurret.turretCost);
     missileCost.text  = string.Format("${0}", missileTurret.turretCost);
 }