Ejemplo n.º 1
0
 private void Start()
 {
     if (Object.op_Inequality((Object)this.ResetButton, (Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.ResetButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(Reset)));
     }
     if (!string.IsNullOrEmpty(this.TargetObjID))
     {
         this.TargetObj = GameObjectID.FindGameObject(this.TargetObjID);
     }
     if (!string.IsNullOrEmpty(this.SillObjID))
     {
         this.SillObj = GameObjectID.FindGameObject(this.SillObjID);
     }
     this.wid  = (float)(Screen.get_width() / 5);
     this.hei  = (float)(Screen.get_height() / 5);
     this.diag = Mathf.Sqrt(Mathf.Pow(this.wid, 2f) + Mathf.Pow(this.hei, 2f));
     if (Object.op_Inequality((Object)this.TargetObj, (Object)null))
     {
         this.targetScale = this.TargetObj.get_transform().get_localScale();
     }
     if (!Object.op_Inequality((Object)this.SillObj, (Object)null))
     {
         return;
     }
     this.sillScale = this.SillObj.get_transform().get_localScale();
 }
Ejemplo n.º 2
0
        private void StartSuikomi()
        {
            this.mSuikomiStarted = true;
            GameObject gameObject = GameObjectID.FindGameObject("UI_TREASURE");

            if (Object.op_Equality((Object)gameObject, (Object)null))
            {
                Debug.LogError((object)"UI_TREASUREが見つかりませんでした。");
            }
            else
            {
                this.mTargetRect = gameObject.get_transform() as RectTransform;
            }
            DataSource.Bind <ItemParam>(((Component)this).get_gameObject(), this.mDropItem.param);
            GameParameter.UpdateAll(((Component)this).get_gameObject());
            this.mItemIcon = (ItemIcon)((Component)this).get_gameObject().GetComponent <ItemIcon>();
            if (Object.op_Inequality((Object)this.mItemIcon, (Object)null))
            {
                this.mItemIcon.Num.set_text(this.mDropItem.num.ToString());
            }
            ((Component)this).get_transform().set_localScale(new Vector3(0.3f, 0.3f, 1f));
            ((Component)this).get_transform().set_position(new Vector3((float)((Component)this).get_transform().get_position().x, (float)(((Component)this).get_transform().get_position().y + 25.0), (float)((Component)this).get_transform().get_position().z));
            this.mEndAnimator = (Animator)gameObject.GetComponent <Animator>();
            this.mEndAnimator.SetBool("open", false);
        }
Ejemplo n.º 3
0
        private void State_Setup()
        {
            GameObject gameObject = GameObjectID.FindGameObject("UI_TREASURE");

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)gameObject, (UnityEngine.Object)null))
            {
                Debug.LogError((object)"UI_TREASUREが見つかりませんでした。");
            }
            else
            {
                this.m_TargetRect = gameObject.get_transform() as RectTransform;
            }
            DataSource.Bind <ItemParam>(((Component)this).get_gameObject(), this.m_DropItem.param);
            if ((bool)this.m_DropItem.is_secret)
            {
                ItemIcon component = (ItemIcon)((Component)this).get_gameObject().GetComponent <ItemIcon>();
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
                {
                    component.IsSecret = true;
                }
            }
            GameParameter.UpdateAll(((Component)this).get_gameObject());
            this.m_ItemIcon = (ItemIcon)((Component)this).get_gameObject().GetComponent <ItemIcon>();
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ItemIcon, (UnityEngine.Object)null))
            {
                this.m_ItemIcon.Num.set_text(this.m_DropItem.num.ToString());
            }
            ((Component)this).get_transform().set_localScale(new Vector3(0.3f, 0.3f, 1f));
            ((Component)this).get_transform().set_position(new Vector3((float)((Component)this).get_transform().get_position().x, (float)(((Component)this).get_transform().get_position().y + 25.0), (float)((Component)this).get_transform().get_position().z));
            this.m_EndAnimator = (Animator)gameObject.GetComponent <Animator>();
            this.m_State       = DropItemEffect.State.OPEN;
        }
Ejemplo n.º 4
0
 public override void OnActivate(int pinID)
 {
     if (pinID != 0)
     {
         return;
     }
     if (Network.Mode == Network.EConnectMode.Offline)
     {
         this.Success();
     }
     else
     {
         GameObject gameObject1 = GameObjectID.FindGameObject(this.HikkoshiFgGMailAddress);
         GameObject gameObject2 = GameObjectID.FindGameObject(this.HikkoshiFgGPassword);
         InputField component1;
         if (Object.op_Equality((Object)gameObject1, (Object)null) || Object.op_Equality((Object)(component1 = (InputField)gameObject1.GetComponent <InputField>()), (Object)null))
         {
             DebugUtility.LogError("InputField doesn't exist.");
         }
         else
         {
             InputField component2;
             if (Object.op_Equality((Object)gameObject2, (Object)null) || Object.op_Equality((Object)(component2 = (InputField)gameObject2.GetComponent <InputField>()), (Object)null))
             {
                 DebugUtility.LogError("InputField doesn't exist.");
             }
             else
             {
                 this.ExecRequest((WebAPI) new ReqGAuthFgGDevice(SystemInfo.get_deviceUniqueIdentifier(), component1.get_text(), component2.get_text(), new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback)));
                 ((Behaviour)this).set_enabled(true);
                 this.m_Api = FlowNode_ReqFggDevice.API.Add;
             }
         }
     }
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.mLeaderSkillDetailButton, (UnityEngine.Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.mLeaderSkillDetailButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OpenLeaderSkillDetail)));
     }
     this.mPreviewParent = GameObjectID.FindGameObject <Transform>(this.mPreviewParentID);
     this.mBGUnitImage   = GameObjectID.FindGameObject <RawImage>(this.mBGUnitImageID);
 }
Ejemplo n.º 6
0
        private void Start()
        {
            GameObject gameObject = GameObjectID.FindGameObject("UI_GOLD");

            if (Object.op_Inequality((Object)gameObject, (Object)null))
            {
                GameParameter.UpdateAll(gameObject);
            }
            GameUtility.RequireComponent <OneShotParticle>(((Component)this).get_gameObject());
        }
Ejemplo n.º 7
0
        public static WorldMapController FindInstance(string gameobjectID)
        {
            GameObject gameObject = GameObjectID.FindGameObject(gameobjectID);

            if (Object.op_Inequality((Object)gameObject, (Object)null))
            {
                return((WorldMapController)gameObject.GetComponent <WorldMapController>());
            }
            return((WorldMapController)null);
        }
Ejemplo n.º 8
0
        private void Start()
        {
            GameObject gameObject = GameObjectID.FindGameObject("UI_GOLD");

            if (!UnityEngine.Object.op_Equality((UnityEngine.Object)gameObject, (UnityEngine.Object)null))
            {
                this.m_TargetRect = gameObject.get_transform() as RectTransform;
            }
            SceneBattle.SimpleEvent.Send(SceneBattle.TreasureEvent.GROUP, "DropGoldEffect.End", (object)this);
            GameUtility.RequireComponent <OneShotParticle>(((Component)this).get_gameObject());
        }
Ejemplo n.º 9
0
        public override void OnActivate(int pinID)
        {
            if (pinID != 10)
            {
                return;
            }
            GameObject gameObject = GameObjectID.FindGameObject(this.ShopTelopGameObjectID);
            ShopTelop  shopTelop  = !Object.op_Equality((Object)gameObject, (Object)null) ? (ShopTelop)gameObject.GetComponent <ShopTelop>() : (ShopTelop)null;

            if (Object.op_Inequality((Object)shopTelop, (Object)null))
            {
                shopTelop.SetText(LocalizedText.Get(this.Text));
            }
            this.ActivateOutputLinks(1);
        }
Ejemplo n.º 10
0
        public override void OnActivate(int pinID)
        {
            switch (pinID)
            {
            case 0:
                if (Network.Mode == Network.EConnectMode.Offline)
                {
                    this.Success();
                    break;
                }
                GameObject gameObject1 = GameObjectID.FindGameObject(this.HikkoshiCodeInputFieldID);
                InputField component1;
                if (Object.op_Equality((Object)gameObject1, (Object)null) || Object.op_Equality((Object)(component1 = (InputField)gameObject1.GetComponent <InputField>()), (Object)null))
                {
                    DebugUtility.LogError("InputField doesn't exist.");
                    break;
                }
                this.ExecRequest((WebAPI) new ReqGAuthMigrate(MonoSingleton <GameManager> .Instance.SecretKey, MonoSingleton <GameManager> .Instance.DeviceId, component1.get_text(), new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback)));
                ((Behaviour)this).set_enabled(true);
                this.m_Api = FlowNode_ReqHikkoshi.API.Normal;
                break;

            case 1:
                if (Network.Mode == Network.EConnectMode.Offline)
                {
                    this.Success();
                    break;
                }
                GameObject gameObject2 = GameObjectID.FindGameObject(this.HikkoshiFgGMailAddress);
                GameObject gameObject3 = GameObjectID.FindGameObject(this.HikkoshiFgGPassword);
                InputField component2;
                if (Object.op_Equality((Object)gameObject2, (Object)null) || Object.op_Equality((Object)(component2 = (InputField)gameObject2.GetComponent <InputField>()), (Object)null))
                {
                    DebugUtility.LogError("InputField doesn't exist.");
                    break;
                }
                InputField component3;
                if (Object.op_Equality((Object)gameObject3, (Object)null) || Object.op_Equality((Object)(component3 = (InputField)gameObject3.GetComponent <InputField>()), (Object)null))
                {
                    DebugUtility.LogError("InputField doesn't exist.");
                    break;
                }
                this.ExecRequest((WebAPI) new ReqGAuthMigrateFgG(MonoSingleton <GameManager> .Instance.SecretKey, MonoSingleton <GameManager> .Instance.DeviceId, component2.get_text(), component3.get_text(), new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback)));
                ((Behaviour)this).set_enabled(true);
                this.m_Api = FlowNode_ReqHikkoshi.API.FgG;
                break;
            }
        }
Ejemplo n.º 11
0
        private void Refresh()
        {
            this.mStatusParamSlots     = new Text[(int)StatusParam.MAX_STATUS];
            this.mStatusParamSlots[0]  = this.Status_HP;
            this.mStatusParamSlots[3]  = this.Status_Atk;
            this.mStatusParamSlots[4]  = this.Status_Def;
            this.mStatusParamSlots[5]  = this.Status_Mag;
            this.mStatusParamSlots[6]  = this.Status_Mnd;
            this.mStatusParamSlots[7]  = this.Status_Rec;
            this.mStatusParamSlots[8]  = this.Status_Dex;
            this.mStatusParamSlots[9]  = this.Status_Speed;
            this.mStatusParamSlots[10] = this.Status_Cri;
            this.mStatusParamSlots[11] = this.Status_Luck;
            this.mCurrentUnitIndex     = int.Parse(FlowNode_Variable.Get("GachaResultDataIndex"));
            UnitParam unit = GachaResultData.drops[this.mCurrentUnitIndex].unit;

            if (unit == null)
            {
                return;
            }
            this.mCurrentUnit = this.CreateUnitData(unit);
            if (this.mCurrentUnit == null)
            {
                return;
            }
            if (!string.IsNullOrEmpty(this.PreviewParentID))
            {
                this.mPreviewParent = GameObjectID.FindGameObject <Transform>(this.PreviewParentID);
                ((Component)this.mPreviewParent).get_transform().set_position(new Vector3(-0.2f, (float)((Component)this.mPreviewParent).get_transform().get_position().y, (float)((Component)this.mPreviewParent).get_transform().get_position().z));
            }
            if (!string.IsNullOrEmpty(this.PreviewBaseID))
            {
                this.mPreviewBase = GameObjectID.FindGameObject(this.PreviewBaseID);
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.mPreviewBase, (UnityEngine.Object)null))
                {
                    GameUtility.SetLayer(this.mPreviewBase, GameUtility.LayerUI, true);
                    this.mPreviewBase.get_transform().set_position(new Vector3(-0.2f, (float)this.mPreviewBase.get_transform().get_position().y, (float)this.mPreviewBase.get_transform().get_position().z));
                    this.mPreviewBase.SetActive(false);
                }
            }
            if (!string.IsNullOrEmpty(this.BGUnitImageID))
            {
                this.mBGUnitImage = GameObjectID.FindGameObject <RawImage>(this.BGUnitImageID);
            }
            this.RefreshGachaCostObject();
            this.StartCoroutine(this.RefreshAsync(false));
        }
Ejemplo n.º 12
0
 private void InitUnitModelPreviewBase()
 {
     if (!string.IsNullOrEmpty(this.PreviewParentID))
     {
         this.mUnitModelPreviewParent = GameObjectID.FindGameObject <Transform>(this.PreviewParentID);
     }
     if (string.IsNullOrEmpty(this.PreviewBaseID))
     {
         return;
     }
     this.mUnitModelPreviewBase = GameObjectID.FindGameObject <Transform>(this.PreviewBaseID);
     if (!Object.op_Inequality((Object)this.mUnitModelPreviewBase, (Object)null))
     {
         return;
     }
     ((Component)this.mUnitModelPreviewBase).get_gameObject().SetActive(false);
 }
Ejemplo n.º 13
0
        public void ChangeUnitPreviewPos(bool is_unit_detail)
        {
            if (Object.op_Equality((Object)this.mUnitModelPreviewParent, (Object)null) || Object.op_Equality((Object)this.mUnitModelPreviewBase, (Object)null))
            {
                return;
            }
            string     name1       = !is_unit_detail ? this.UnitTobiraPreviewPosID : this.UnitDetailPreviewPosID;
            string     name2       = !is_unit_detail ? this.UnitTobiraPreviewBasePosID : this.UnitDetailPreviewBasePosID;
            GameObject gameObject1 = GameObjectID.FindGameObject(name1);
            GameObject gameObject2 = GameObjectID.FindGameObject(name2);

            if (!Object.op_Inequality((Object)gameObject1, (Object)null) || !Object.op_Inequality((Object)gameObject2, (Object)null))
            {
                return;
            }
            ((Component)this.mUnitModelPreviewParent).get_transform().set_localPosition(gameObject1.get_transform().get_localPosition());
            ((Component)this.mUnitModelPreviewBase).get_transform().set_localPosition(gameObject2.get_transform().get_localPosition());
        }
Ejemplo n.º 14
0
 private T UpdateReference <T>(ref T obj, string path) where T : Component
 {
     if (Object.op_Equality((Object)(object)obj, (Object)null))
     {
         GameObject gameObject = GameObjectID.FindGameObject(path);
         if (Object.op_Equality((Object)gameObject, (Object)null))
         {
             Debug.LogError((object)(path + " は存在しません"));
             return((T)null);
         }
         obj = (T)gameObject.GetComponent(typeof(T));
         if (Object.op_Equality((Object)(object)obj, (Object)null))
         {
             Debug.LogError((object)(path + " は " + (object)typeof(T) + " を含みません"));
             return((T)null);
         }
     }
     return(obj);
 }
Ejemplo n.º 15
0
        public static GameObject FindActor(string actorID)
        {
            if (string.IsNullOrEmpty(actorID))
            {
                return((GameObject)null);
            }
            TacticsUnitController byUnitId;

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)(byUnitId = TacticsUnitController.FindByUnitID(actorID)), (UnityEngine.Object)null))
            {
                return(((Component)byUnitId).get_gameObject());
            }
            TacticsUnitController byUniqueName;

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)(byUniqueName = TacticsUnitController.FindByUniqueName(actorID)), (UnityEngine.Object)null))
            {
                return(((Component)byUniqueName).get_gameObject());
            }
            return(GameObjectID.FindGameObject(actorID));
        }
Ejemplo n.º 16
0
        private void UpdatePosition()
        {
            if (string.IsNullOrEmpty(this.ReverseObjectID))
            {
                return;
            }
            GameObject gameObject = GameObjectID.FindGameObject(this.ReverseObjectID);

            if (!Object.op_Inequality((Object)gameObject, (Object)null))
            {
                return;
            }
            UIProjector component = (UIProjector)gameObject.GetComponent <UIProjector>();

            if (!Object.op_Inequality((Object)component, (Object)null))
            {
                return;
            }
            component.ReStart();
        }
Ejemplo n.º 17
0
        public void OnOpenSkillUnlockCondWindow(GameObject button)
        {
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SkillUnlockCondWindow, (UnityEngine.Object)null))
            {
                return;
            }
            GameObject gameObject1 = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.SkillUnlockCondWindow);
            QuestClearUnlockUnitDataParam dataOfClass = DataSource.FindDataOfClass <QuestClearUnlockUnitDataParam>(button, (QuestClearUnlockUnitDataParam)null);

            DataSource.Bind <QuestClearUnlockUnitDataParam>(gameObject1, dataOfClass);
            gameObject1.SetActive(true);
            gameObject1.get_transform().SetParent(((Component)this).get_transform(), false);
            Text gameObject2 = GameObjectID.FindGameObject <Text>(this.UnlockCondTextId);

            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject2, (UnityEngine.Object)null))
            {
                return;
            }
            gameObject2.set_text(dataOfClass.GetUnitLevelCond());
            string abilityLevelCond = dataOfClass.GetAbilityLevelCond();

            if (!string.IsNullOrEmpty(abilityLevelCond))
            {
                Text text = gameObject2;
                text.set_text(text.get_text() + (string.IsNullOrEmpty(gameObject2.get_text()) ? string.Empty : "\n") + abilityLevelCond);
            }
            string clearQuestCond = dataOfClass.GetClearQuestCond();

            if (string.IsNullOrEmpty(clearQuestCond))
            {
                return;
            }
            Text text1 = gameObject2;

            text1.set_text(text1.get_text() + (string.IsNullOrEmpty(gameObject2.get_text()) ? string.Empty : "\n") + clearQuestCond);
        }
Ejemplo n.º 18
0
 protected virtual void Start()
 {
     if (Object.op_Equality((Object)this.UIObject, (Object)null) && !string.IsNullOrEmpty(this.UIObjectID))
     {
         GameObject gameObject = GameObjectID.FindGameObject(this.UIObjectID);
         if (Object.op_Inequality((Object)gameObject, (Object)null))
         {
             this.UIObject = (RectTransform)gameObject.GetComponent <RectTransform>();
         }
     }
     if (Object.op_Equality((Object)this.mCanvas, (Object)null) && Object.op_Inequality((Object)this.UIObject, (Object)null))
     {
         this.mCanvas = (Canvas)((Component)this.UIObject).GetComponentInParent <Canvas>();
     }
     if (Object.op_Inequality((Object)this.mCanvas, (Object)null) && Object.op_Equality((Object)this.UIObject, (Object)null))
     {
         this.UIObject = new GameObject(((Object)((Component)this).get_gameObject()).get_name(), new System.Type[1]
         {
             typeof(RectTransform)
         }).get_transform() as RectTransform;
         ((Transform)this.UIObject).SetParent(((Component)this.mCanvas).get_transform(), false);
     }
     CameraHook.AddPreCullEventListener(new CameraHook.PreCullEvent(this.PreCull));
 }