private void InitStatusWindow() { if (!Object.op_Inequality((Object)this.TargetTemplate, (Object)null)) { return; } this.m_Status = (TargetPlate)Object.Instantiate <TargetPlate>((M0)this.TargetTemplate); if (!Object.op_Inequality((Object)this.m_Status, (Object)null)) { return; } if (Object.op_Inequality((Object)this.TargetParent, (Object)null)) { ((Component)this.m_Status).get_gameObject().get_transform().SetParent(((Component)this).get_transform(), false); } this.m_Status.ActivateNextTargetArrow(new ButtonExt.ButtonClickEvent(this.OnNextUnit)); this.m_Status.ActivatePrevTargetArrow(new ButtonExt.ButtonClickEvent(this.OnPrevUnit)); }
private void Start() { if (Object.op_Inequality((Object)this.Prefab_TargetMain, (Object)null)) { this.TargetMain = (TargetPlate)Object.Instantiate <TargetPlate>((M0)this.Prefab_TargetMain); ((Component)this.TargetMain).get_transform().SetParent(((Component)this).get_transform(), false); } if (Object.op_Inequality((Object)this.Prefab_TargetSub, (Object)null)) { this.TargetSub = (TargetPlate)Object.Instantiate <TargetPlate>((M0)this.Prefab_TargetSub); ((Component)this.TargetSub).get_transform().SetParent(((Component)this).get_transform(), false); } if (!Object.op_Inequality((Object)this.Prefab_ObjectTarget, (Object)null)) { return; } this.TargetObjectSub = (TargetPlate)Object.Instantiate <TargetPlate>((M0)this.Prefab_ObjectTarget); ((Component)this.TargetObjectSub).get_transform().SetParent(((Component)this).get_transform(), false); }
private void Start() { this.mSb = SceneBattle.Instance; if (!UnityEngine.Object.op_Implicit((UnityEngine.Object) this.mSb) || !UnityEngine.Object.op_Implicit((UnityEngine.Object) this.mSb.BattleUI)) { return; } this.mBc = this.mSb.Battle; if (this.mBc == null) { return; } this.mTargetSub = this.mSb.BattleUI.TargetSub; if (!UnityEngine.Object.op_Implicit((UnityEngine.Object) this.mTargetSub)) { return; } if (this.mBc.IsMultiTower) { if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoLeaderSkill)) { this.GoLeaderSkill.SetActive(true); } if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoLeader2Skill)) { this.GoLeader2Skill.SetActive(true); } if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoFriendSkill)) { this.GoFriendSkill.SetActive(false); } } else if (this.mBc.IsMultiPlay && !this.mBc.IsMultiVersus) { if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoLeaderSkill)) { this.GoLeaderSkill.SetActive(this.mBc.IsMultiLeaderSkill); } if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoLeader2Skill)) { this.GoLeader2Skill.SetActive(false); } if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoFriendSkill)) { this.GoFriendSkill.SetActive(false); } } else { if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoLeaderSkill)) { this.GoLeaderSkill.SetActive(true); } if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoLeader2Skill)) { this.GoLeader2Skill.SetActive(false); } if (this.mBc.IsTower) { TowerFloorParam tfParam = this.TF_Param; if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoFriendSkill)) { this.GoFriendSkill.SetActive(tfParam.can_help); } } else if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoFriendSkill)) { this.GoFriendSkill.SetActive(!this.mBc.IsMultiVersus); } } if (UnityEngine.Object.op_Implicit((UnityEngine.Object) this.GoLeaderSkillBadge)) { this.GoLeaderSkillBadge.SetActive(this.mBc.IsMultiTower); } this.Refresh(this.mTargetSub.SelectedUnit); }