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

        buildManager = buildManager.instance;
    }
Example #2
0
 //i'll be honest i dont think this is used.
 void Awake()
 {
     if (instance = null)
     {
         return;
     }
     instance = this;
 }
Example #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;
 }
Example #5
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one build manager");
     }
     instance = this;
 }
Example #6
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than once buildManager in scene!");
         return;
     }
     instance = this;
 }
Example #7
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("Multiple Build Managers");
         return;
     }
     instance = this;
 }
Example #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;
    }
Example #9
0
 void Start()
 {
     buildManager = buildManager.instance;
 }
Example #10
0
 void Awake()
 {
     instance = this;
 }
Example #11
0
 void Start()
 {
     rend         = GetComponent <Renderer>();
     defaultColor = rend.material.color;
     bm           = buildManager.instance;
 }
Example #12
0
    // Use this for initialization

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

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