Example #1
0
    public void Disable(GameObject obj)
    {
        int           id         = obj.GetInstanceID();
        GlowingObject glowObject = null;

        if (glowingObjects.TryGetValue(id, out glowObject))
        {
            glowObject.enabled = false;
            glowingObjects.Remove(id);
        }
    }
Example #2
0
 public override void _Ready()
 {
     base._Ready();
     Glowing = GetNode <GlowingObject>("Bar");
 }