删除不必要得场景
This commit is contained in:
parent
8bb14907e1
commit
f9a98b6c78
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: b89569af6fe931647be081fff26b1b94
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: e2b5b17c36616484fb76f5cb2e7b730f
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 825efef6ba8a5744aa342459759569a0
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
|
@ -15,18 +15,18 @@ public class OfficeTimelineControl : MonoBehaviour
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
//playerController.SetActive(false);
|
playerController.SetActive(false);
|
||||||
//mPlayableDirector = GetComponent<PlayableDirector>();
|
mPlayableDirector = GetComponent<PlayableDirector>();
|
||||||
//mPlayableDirector.Stop();
|
mPlayableDirector.Stop();
|
||||||
//mPlayableDirector.stopped += OnPlayableDirectorStopped;
|
mPlayableDirector.stopped += OnPlayableDirectorStopped;
|
||||||
//playerModel = transform.GetChild(0).gameObject;
|
playerModel = transform.GetChild(0).gameObject;
|
||||||
//StartTimeline(); //TODO 这里先掉一下,后续应该流程控制的时候触发调用
|
StartTimeline(); //TODO 这里先掉一下,后续应该流程控制的时候触发调用
|
||||||
}
|
}
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
if (Input.GetKeyDown("p"))
|
if (Input.GetKeyDown("p"))
|
||||||
{
|
{
|
||||||
OnPlayableDirectorStopped(null);
|
mPlayableDirector.Stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void StartTimeline()
|
public void StartTimeline()
|
||||||
|
@ -36,11 +36,11 @@ public class OfficeTimelineControl : MonoBehaviour
|
||||||
|
|
||||||
private void OnPlayableDirectorStopped(PlayableDirector aDirector)
|
private void OnPlayableDirectorStopped(PlayableDirector aDirector)
|
||||||
{
|
{
|
||||||
//if (mPlayableDirector == aDirector)
|
if (mPlayableDirector == aDirector)
|
||||||
//{
|
{
|
||||||
GameManager.EventMgr.EventTrigger(Enum_EventType.OfficeTimeLineOver);
|
GameManager.EventMgr.EventTrigger(Enum_EventType.OfficeTimeLineOver);
|
||||||
Invoke("DestroyPlayer", 1f);
|
Invoke("DestroyPlayer", 1f);
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DestroyPlayer()
|
private void DestroyPlayer()
|
||||||
|
@ -53,6 +53,6 @@ public class OfficeTimelineControl : MonoBehaviour
|
||||||
|
|
||||||
void OnDestroy()
|
void OnDestroy()
|
||||||
{
|
{
|
||||||
//mPlayableDirector.stopped -= OnPlayableDirectorStopped;
|
mPlayableDirector.stopped -= OnPlayableDirectorStopped;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue