| | |
| | | m_DungeonAlphaTween.Play();
|
| | | treasureTweening = true;
|
| | | timer = 0f;
|
| | | StopAllLine();
|
| | | UI3DTreasureSelectStage.Instance.Tween(()=>
|
| | | {
|
| | | treasureTweening = false;
|
| | | DisplayLines();
|
| | | });
|
| | | m_DescriptionTween.SetStartState();
|
| | | m_NameTween.SetStartState();
|
| | |
| | | m_DungeonAlphaTween.Play();
|
| | | treasureTweening = true;
|
| | | timer = 0f;
|
| | | StopAllLine();
|
| | | UI3DTreasureSelectStage.Instance.Tween(() =>
|
| | | {
|
| | | treasureTweening = false;
|
| | | DisplayLines();
|
| | | });
|
| | | m_DescriptionTween.Play(true);
|
| | | m_NameTween.Play(true);
|
| | |
| | | public const float LINE_NORMAL_SCALE = 0.78f;
|
| | | private void DisplayLines()
|
| | | {
|
| | | Treasure treasure;
|
| | | model.TryGetTreasure(model.selectedTreasure, out treasure);
|
| | | TreasureDungeon treasureDungeon;
|
| | | var scriptable = ScriptableObjectLoader.LoadSoDemonDungeon(model.selectedTreasure);
|
| | | if (scriptable == null)
|
| | | if (scriptable == null || treasureTweening || treasure == null || treasure.state == TreasureState.Locked)
|
| | | {
|
| | | StopAllLine();
|
| | | return;
|
| | | }
|
| | | if (model.TryGetTreasureDungeon(model.selectedTreasure, out treasureDungeon))
|
| | |
| | | if (index < m_DungeonBehaviours.Length)
|
| | | {
|
| | | var line = m_DungeonBehaviours[index].line;
|
| | | line.Stop();
|
| | | if (i < treasureDungeon.currentLevel)
|
| | | line.StopImediatly();
|
| | | if (i <= treasureDungeon.currentLevel && treasureDungeon.maxLevel > i)
|
| | | {
|
| | | line.Play();
|
| | | if (line.target != null)
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void StopAllLine()
|
| | | {
|
| | | for (int i = 0; i < m_DungeonBehaviours.Length; i++)
|
| | | {
|
| | | m_DungeonBehaviours[i].line.StopImediatly();
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | enum AnimationStep
|