删除不必要得场景

This commit is contained in:
YangHua 2024-09-02 11:30:07 +08:00
parent 8bb14907e1
commit f9a98b6c78
8 changed files with 314 additions and 23023 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: b89569af6fe931647be081fff26b1b94
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: e2b5b17c36616484fb76f5cb2e7b730f
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 825efef6ba8a5744aa342459759569a0
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -15,18 +15,18 @@ public class OfficeTimelineControl : MonoBehaviour
// Start is called before the first frame update
void Start()
{
//playerController.SetActive(false);
//mPlayableDirector = GetComponent<PlayableDirector>();
//mPlayableDirector.Stop();
//mPlayableDirector.stopped += OnPlayableDirectorStopped;
//playerModel = transform.GetChild(0).gameObject;
//StartTimeline(); //TODO 这里先掉一下,后续应该流程控制的时候触发调用
playerController.SetActive(false);
mPlayableDirector = GetComponent<PlayableDirector>();
mPlayableDirector.Stop();
mPlayableDirector.stopped += OnPlayableDirectorStopped;
playerModel = transform.GetChild(0).gameObject;
StartTimeline(); //TODO 这里先掉一下,后续应该流程控制的时候触发调用
}
private void Update()
{
if (Input.GetKeyDown("p"))
{
OnPlayableDirectorStopped(null);
mPlayableDirector.Stop();
}
}
public void StartTimeline()
@ -36,11 +36,11 @@ public class OfficeTimelineControl : MonoBehaviour
private void OnPlayableDirectorStopped(PlayableDirector aDirector)
{
//if (mPlayableDirector == aDirector)
//{
GameManager.EventMgr.EventTrigger(Enum_EventType.OfficeTimeLineOver);
Invoke("DestroyPlayer", 1f);
//}
if (mPlayableDirector == aDirector)
{
GameManager.EventMgr.EventTrigger(Enum_EventType.OfficeTimeLineOver);
Invoke("DestroyPlayer", 1f);
}
}
private void DestroyPlayer()
@ -53,6 +53,6 @@ public class OfficeTimelineControl : MonoBehaviour
void OnDestroy()
{
//mPlayableDirector.stopped -= OnPlayableDirectorStopped;
mPlayableDirector.stopped -= OnPlayableDirectorStopped;
}
}