private void AddShineEffect() { if (WPFMonoBehaviour.levelManager != null && this.HasTag("Gold")) { SpriteShineEffect.AddOneTimeShine(base.gameObject); } }
public static void AddOneTimeShine(GameObject go) { if (go == null) { return; } SpriteShineEffect spriteShineEffect = go.AddComponent <SpriteShineEffect>(); spriteShineEffect.ShineOnce(); }