Ejemplo n.º 1
0
	// Use this for initialization
	void Start () {

        if (sMeter == null) GetComponentInChildren<SacrificeMeter>();
        if (sMeter == null) Debug.LogWarning(" There is no Sacrifice Meter reference attached to: " + name);

        spawner = TempResourcesSpawner.instance;
	
	}
Ejemplo n.º 2
0
 void Awake()
 {
     if (_instance == null) _instance = this;
     else
     {
         Debug.LogWarning ( "Second instance of singleton type: " +  this.GetType() + " \r\n Destroying! ");
         Destroy(this);
         return;
     }
 }
Ejemplo n.º 3
0
	// Use this for initialization
	void Start () {

        spawner = TempResourcesSpawner.instance;
	
	}