private void Awake() { if (instance != null) { GameObject.DestroyImmediate(instance.gameObject); Debug.LogError("additional weatherqueue found. deleting the older one"); } instance = this; // Debug.Log("defined instance"); }
public ShapeQueue() { m_instance = this; FillQueue(); }
// Use this for initialization void Start() { m_shapeQueue = new ShapeQueue(); BuildScene(); }