Beispiel #1
0
    public static IFieldGimmickObject Create <T>(FieldMapTable.FieldGimmickPointTableData pointData, int layer, Transform parent) where T : MonoBehaviour
    {
        //IL_0027: Unknown result type (might be due to invalid IL or missing references)
        //IL_0038: Unknown result type (might be due to invalid IL or missing references)
        //IL_003d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0048: Unknown result type (might be due to invalid IL or missing references)
        if (pointData == null)
        {
            return(null);
        }
        Transform val = Utility.CreateGameObject("GimmickObject", parent, layer);

        val.set_position(new Vector3(pointData.pointX, 0f, pointData.pointZ));
        val.set_rotation(Quaternion.AngleAxis(pointData.pointDir, Vector3.get_up()));
        IFieldGimmickObject fieldGimmickObject = val.get_gameObject().AddComponent <T>() as IFieldGimmickObject;

        fieldGimmickObject.SetTransform(val);
        string objectName = fieldGimmickObject.GetObjectName();

        if (!string.IsNullOrEmpty(objectName))
        {
            val.set_name(objectName);
        }
        return(fieldGimmickObject);
    }
    public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
    {
        //IL_0029: Unknown result type (might be due to invalid IL or missing references)
        //IL_002e: Expected O, but got Unknown
        //IL_007e: Unknown result type (might be due to invalid IL or missing references)
        //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
        base.Initialize(pointData);
        actionData = Singleton <FieldMapTable> .I.GetFieldGimmickActionData((uint)base.m_pointData.value1);

        Transform effect = EffectManager.GetEffect("ef_btl_bg_geyser_01", this.get_transform());

        if (effect != null)
        {
            effectCtrl = effect.GetComponent <EffectCtrl>();
        }
        if (MonoBehaviourSingleton <StageObjectManager> .IsValid())
        {
            self = MonoBehaviourSingleton <StageObjectManager> .I.self;
        }
        if (self != null)
        {
            selfInstanceId = self.get_gameObject().GetInstanceID();
        }
        reactionType = actionData.reactionType;
        actCollider  = this.get_gameObject().AddComponent <CapsuleCollider>();
        Reset();
    }
    public void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
    {
        base.Initialize();
        param           = MonoBehaviourSingleton <InGameSettingsManager> .I.waveMatchParam;
        base.objectType = OBJECT_TYPE.WAVE_TARGET;
        id            = (int)pointData.pointID;
        m_gimmickType = pointData.gimmickType;
        if (MonoBehaviourSingleton <InGameProgress> .IsValid() && MonoBehaviourSingleton <InGameProgress> .I.fieldGimmickModelTable != null)
        {
            LoadObject loadObject = MonoBehaviourSingleton <InGameProgress> .I.fieldGimmickModelTable.Get((uint)m_gimmickType);

            if (loadObject != null)
            {
                m_modelTrans = ResourceUtility.Realizes(loadObject.loadedObject, base._transform, -1);
            }
        }
        _maxHp        = (_nowHp = (int)pointData.value1);
        base.coopMode = (MonoBehaviourSingleton <CoopManager> .I.coopMyClient.isStageHost ? COOP_MODE_TYPE.ORIGINAL : COOP_MODE_TYPE.MIRROR);
        ParseParam(pointData.value2);
        if (MonoBehaviourSingleton <UIStatusGizmoManager> .IsValid())
        {
            MonoBehaviourSingleton <UIStatusGizmoManager> .I.CreateWaveTarget(this);
        }
        if (MonoBehaviourSingleton <MiniMap> .IsValid())
        {
            MonoBehaviourSingleton <MiniMap> .I.Attach(this);
        }
    }
 public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
 {
     //IL_0015: Unknown result type (might be due to invalid IL or missing references)
     base.Initialize(pointData);
     m_coolTime = pointData.value1;
     _animator  = this.get_gameObject().GetComponentInChildren <Animator>();
 }
 public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
 {
     //IL_0028: Unknown result type (might be due to invalid IL or missing references)
     //IL_002d: Expected O, but got Unknown
     //IL_003e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0043: Expected O, but got Unknown
     base.Initialize(pointData);
     m_coolTime    = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.coolTimeForHeavy;
     m_baseTrans   = modelTrans.Find("CMN_cannon01_Origin/Move/Root/base/rot");
     m_cannonTrans = modelTrans.Find("CMN_cannon01_Origin/Move/Root/base/rot/cannon_rot");
 }
Beispiel #6
0
 public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
 {
     base.Initialize(pointData);
     m_healInterval = pointData.value1;
     animForModel   = m_transform.GetComponentInChildren <Animator>();
     rendererArray  = m_transform.GetComponentsInChildren <Renderer>(true);
     if (rendererArray != null)
     {
         SetReadyForHeal();
     }
 }
Beispiel #7
0
 public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
 {
     if (MonoBehaviourSingleton <UIStatusGizmoManager> .IsValid())
     {
         MonoBehaviourSingleton <UIStatusGizmoManager> .I.CreateSonar(this);
     }
     base.Initialize(pointData);
     if (MonoBehaviourSingleton <EffectManager> .IsValid())
     {
         sonarEffect = EffectManager.GetEffect("ef_btl_sonar_01", modelTrans);
     }
 }
 public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
 {
     //IL_0013: Unknown result type (might be due to invalid IL or missing references)
     //IL_0018: Expected O, but got Unknown
     base.Initialize(pointData);
     m_launchTrans       = modelTrans.Find(NAME_NODE_SHOT_EFFECT);
     m_delayChangeCamera = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.delayChangeCameraForSpecial;
     m_seIdShot          = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.seIdForSpecial;
     m_seIdCharge        = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.seIdForSpecialCharge;
     m_seIdChargeMax     = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.seIdForSpecialChargeMax;
     m_seIdOnBoard       = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.seIdForSpecialOnBoard;
 }
Beispiel #9
0
    public virtual void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
    {
        m_pointData   = pointData;
        m_id          = (int)m_pointData.pointID;
        m_gimmickType = m_pointData.gimmickType;
        if (MonoBehaviourSingleton <InGameProgress> .IsValid() && MonoBehaviourSingleton <InGameProgress> .I.fieldGimmickModelTable != null)
        {
            LoadObject loadObject = MonoBehaviourSingleton <InGameProgress> .I.fieldGimmickModelTable.Get((uint)m_gimmickType);

            if (loadObject != null)
            {
                modelTrans = ResourceUtility.Realizes(loadObject.loadedObject, m_transform, -1);
            }
        }
    }
 public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
 {
     //IL_001f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0024: Expected O, but got Unknown
     //IL_0035: Unknown result type (might be due to invalid IL or missing references)
     //IL_003a: Expected O, but got Unknown
     //IL_0045: Unknown result type (might be due to invalid IL or missing references)
     //IL_0051: Unknown result type (might be due to invalid IL or missing references)
     //IL_0089: Unknown result type (might be due to invalid IL or missing references)
     base.Initialize(pointData);
     m_coolFinishTime = pointData.value1;
     m_baseTrans      = modelTrans.Find("CMN_cannon01_Origin/Move/Root/base/rot");
     m_cannonTrans    = modelTrans.Find("CMN_cannon01_Origin/Move/Root/base/rot/cannon_rot");
     m_baseTrans.LookAt(Vector3.get_zero());
     _animator = this.get_gameObject().GetComponentInChildren <Animator>();
     if (MonoBehaviourSingleton <UIStatusGizmoManager> .IsValid())
     {
         MonoBehaviourSingleton <UIStatusGizmoManager> .I.Create(this);
     }
     if (ballisticLineRenderer == null)
     {
         ballisticLineRenderer = this.get_gameObject().AddComponent <BallisticLineRenderer>();
     }
 }
 public override void Initialize(FieldMapTable.FieldGimmickPointTableData pointData)
 {
     //IL_0028: Unknown result type (might be due to invalid IL or missing references)
     //IL_002d: Expected O, but got Unknown
     //IL_003e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0043: Expected O, but got Unknown
     //IL_0057: Unknown result type (might be due to invalid IL or missing references)
     //IL_005c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0069: Unknown result type (might be due to invalid IL or missing references)
     //IL_006e: Unknown result type (might be due to invalid IL or missing references)
     //IL_007b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0080: Unknown result type (might be due to invalid IL or missing references)
     base.Initialize(pointData);
     m_coolTime    = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.coolTimeForRapid;
     m_baseTrans   = modelTrans.Find("CMN_cannon01_Origin/Move/Root/base/rot");
     m_cannonTrans = modelTrans.Find("CMN_cannon01_Origin/Move/Root/base/rot/cannon_rot");
     offsetArray   = (Vector3[])new Vector3[3]
     {
         OFFSET_ZERO,
         OFFSET_RIGHT,
         OFFSET_LEFT
     };
     shotSeId = MonoBehaviourSingleton <InGameSettingsManager> .I.cannonParam.seIdForRapid;
 }