Пример #1
0
 private void AddShineEffect()
 {
     if (WPFMonoBehaviour.levelManager != null && this.HasTag("Gold"))
     {
         SpriteShineEffect.AddOneTimeShine(base.gameObject);
     }
 }
Пример #2
0
    public static void AddOneTimeShine(GameObject go)
    {
        if (go == null)
        {
            return;
        }
        SpriteShineEffect spriteShineEffect = go.AddComponent <SpriteShineEffect>();

        spriteShineEffect.ShineOnce();
    }