Beispiel #1
0
 internal static GameObject GetSporeOrbPrefab()
 {
     if (sporeOrbPrefab == null)
     {
         sporeOrbPrefab = EffectCreator.CreateSporeOrbEffect();
         EffectsCore.AddEffect(sporeOrbPrefab);
     }
     return(sporeOrbPrefab);
 }
Beispiel #2
0
 internal static GameObject GetShockImpactPrefab()
 {
     if (shockImpactPrefab == null)
     {
         shockImpactPrefab = EffectCreator.CreateShockImpactPrefab();
         EffectsCore.AddEffect(shockImpactPrefab);
     }
     return(shockImpactPrefab);
 }
Beispiel #3
0
        internal static void RegisterEffect(GameObject effect)
        {
            var bitSkin = effect.GetComponent <BitSkinController>();

            if (bitSkin != null)
            {
                skinnedEffects.Add(effect);
            }

            // TODO: Effect
            EffectsCore.AddEffect(effect);
        }
Beispiel #4
0
        internal static GameObject CreateRicochetEffect()
        {
            GameObject obj = PrefabsCore.CreatePrefab( "SniperRicochetEffect", false );

            var effectComp = obj.AddComponent<EffectComponent>();
            var vfxAtrib = obj.AddComponent<VFXAttributes>();
            obj.AddComponent<RicochetEffectController>().destroyDelay = 2f;

            EffectsCore.AddEffect( obj );

            return obj;
        }