public void InitEffects(InitEffectsEvent e, TankInstanceNode tank)
        {
            Transform parent = new GameObject("ModuleVisualEffects").transform;

            parent.SetParent(tank.tankCommonInstance.TankCommonInstance.transform);
            parent.localPosition = Vector3.zero;
            GameObject obj2 = Object.Instantiate <GameObject>(tank.moduleVisualEffectPrefabs.JumpImpactEffectPrefab, parent);

            obj2.SetActive(false);
            GameObject obj3 = Object.Instantiate <GameObject>(tank.moduleVisualEffectPrefabs.ExternalImpactEffectPrefab, parent);

            obj3.SetActive(false);
            GameObject obj4 = Object.Instantiate <GameObject>(tank.moduleVisualEffectPrefabs.FireRingEffectPrefab, parent);

            obj4.SetActive(false);
            GameObject obj5 = Object.Instantiate <GameObject>(tank.moduleVisualEffectPrefabs.ExplosiveMassEffectPrefab, parent);

            obj5.SetActive(false);
            ModuleVisualEffectObjectsComponent component = new ModuleVisualEffectObjectsComponent {
                JumpImpactEffect     = obj2,
                ExternalImpactEffect = obj3,
                FireRingEffect       = obj4,
                ExplosiveMassEffect  = obj5
            };

            tank.Entity.AddComponent(component);
        }
 public void ScheduleInitEffects(NodeAddedEvent e, TankInstanceNode tank)
 {
     base.NewEvent <InitEffectsEvent>().Attach(tank).ScheduleDelayed(0.3f);
 }