【剧情】剧情UI功能
parent
89105521bb
commit
2641c79e75
|
|
@ -1299,7 +1299,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &7051972693408823226
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -2421,8 +2421,8 @@ MonoBehaviour:
|
|||
m_TargetGraphic: {fileID: 6153233639585737742}
|
||||
m_HandleRect: {fileID: 3837541726436133914}
|
||||
m_Direction: 2
|
||||
m_Value: 1
|
||||
m_Size: 1
|
||||
m_Value: 1.0000006
|
||||
m_Size: 0
|
||||
m_NumberOfSteps: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
|
|
@ -4478,8 +4478,8 @@ RectTransform:
|
|||
m_Children: []
|
||||
m_Father: {fileID: 5014326811785617644}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -18}
|
||||
m_SizeDelta: {x: 35, y: 203}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
|
|
@ -4997,7 +4997,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &2435750827471002304
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -163,14 +163,16 @@ public class UIStoryMainController : UIWindow
|
|||
|
||||
private void EventsRegister()
|
||||
{
|
||||
EventManager.Instance.Register(EventManager.EventName.STORY_BLOCK_END, OnClipEnd);
|
||||
EventManager.Instance.Register(EventManager.EventName.STORY_BLOCK_END, OnBlockEnd);
|
||||
EventManager.Instance.Register(EventManager.EventName.STORY_OPEN_CHOICE_UI, (Action<EDOpenChoiceData>)OnOpenChoice);
|
||||
EventManager.Instance.Register(EventManager.EventName.STORY_BLOCK_START, OnBlockStart);
|
||||
}
|
||||
|
||||
private void EventsUnregister()
|
||||
{
|
||||
EventManager.Instance.Unregister(EventManager.EventName.STORY_BLOCK_END, OnClipEnd);
|
||||
EventManager.Instance.Unregister(EventManager.EventName.STORY_BLOCK_END, OnBlockEnd);
|
||||
EventManager.Instance.Unregister(EventManager.EventName.STORY_OPEN_CHOICE_UI, (Action<EDOpenChoiceData>)OnOpenChoice);
|
||||
EventManager.Instance.Unregister(EventManager.EventName.STORY_BLOCK_START, OnBlockStart);
|
||||
}
|
||||
|
||||
//清楚所有不必要缓存
|
||||
|
|
@ -471,6 +473,15 @@ public class UIStoryMainController : UIWindow
|
|||
}
|
||||
_dispBubblePool.Remove(playerId);
|
||||
}
|
||||
|
||||
private void HideAllEnableBubble()
|
||||
{
|
||||
var playerDic = StoryManager.instance.playerManager.playerDict;
|
||||
foreach (var player in playerDic)
|
||||
{
|
||||
DoDisableBubbleObj(player.Key);
|
||||
}
|
||||
}
|
||||
|
||||
//展示旁白
|
||||
private void ShowAsideTalk(string content)
|
||||
|
|
@ -622,8 +633,13 @@ public class UIStoryMainController : UIWindow
|
|||
}
|
||||
|
||||
//监听事件
|
||||
private void OnClipEnd()
|
||||
private void OnBlockEnd()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OnBlockStart()
|
||||
{
|
||||
HideAllEnableBubble();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue