Exemplo n.º 1
0
 private static void InitFx(rymFX fx, bool binary)
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     if (fx.get_gameObject().get_layer() != 5)
     {
         SceneSettingsManager.ApplyEffect(fx, false);
     }
 }
    protected void PlayStampEffect(StageObject.StampInfo stamp_info, StampNode stamp_node)
    {
        //IL_0006: Unknown result type (might be due to invalid IL or missing references)
        //IL_000b: Unknown result type (might be due to invalid IL or missing references)
        //IL_000c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0013: Unknown result type (might be due to invalid IL or missing references)
        //IL_0019: Unknown result type (might be due to invalid IL or missing references)
        //IL_001e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0023: Unknown result type (might be due to invalid IL or missing references)
        //IL_0028: Unknown result type (might be due to invalid IL or missing references)
        //IL_0029: Unknown result type (might be due to invalid IL or missing references)
        //IL_002a: Unknown result type (might be due to invalid IL or missing references)
        //IL_002f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0043: Unknown result type (might be due to invalid IL or missing references)
        //IL_004a: Unknown result type (might be due to invalid IL or missing references)
        //IL_0055: Unknown result type (might be due to invalid IL or missing references)
        //IL_0060: Unknown result type (might be due to invalid IL or missing references)
        //IL_009b: Unknown result type (might be due to invalid IL or missing references)
        //IL_00be: Unknown result type (might be due to invalid IL or missing references)
        Vector3 position = stamp_node._transform.get_position();

        position += stamp_node._transform.get_rotation() * stamp_node.scaledeOffset;
        position  = StageManager.FitHeight(position);
        string effectName = stamp_info.effectName;

        if (!string.IsNullOrEmpty(effectName))
        {
            EffectManager.OneShot(effectName, position, _transform.get_rotation(), _transform.get_localScale() * stamp_info.effectScale, isSelf, delegate(Transform effect)
            {
                //IL_0001: Unknown result type (might be due to invalid IL or missing references)
                SceneSettingsManager.ApplyEffect(effect.get_gameObject().GetComponent <rymFX>(), true);
                if (effectLayer != -1)
                {
                    Utility.SetLayerWithChildren(effect, effectLayer);
                }
            });
        }
        if (stamp_info.shakeCameraPercent > 0f && MonoBehaviourSingleton <InGameCameraManager> .IsValid())
        {
            MonoBehaviourSingleton <InGameCameraManager> .I.SetShakeCamera(position, stamp_info.shakeCameraPercent, stamp_info.shakeCycleTime);
        }
        if (stamp_info.seID != 0)
        {
            SoundManager.PlayOneShotSE(stamp_info.seID, position);
        }
    }