// Use this for initialization void Awake() { representer = GetComponentInChildren <RepresentStructHandler>(); if (instance == null || instance.Equals(null)) { instance = this; StartCoroutine(AmbientRoutine()); resource_internal = startingResource; } else { Destroy(gameObject); } }