public void Disable(GameObject obj) { int id = obj.GetInstanceID(); GlowingObject glowObject = null; if (glowingObjects.TryGetValue(id, out glowObject)) { glowObject.enabled = false; glowingObjects.Remove(id); } }
public override void _Ready() { base._Ready(); Glowing = GetNode <GlowingObject>("Bar"); }