|
@@ -22,26 +22,29 @@ namespace ET.Client
|
|
|
MainCamera.transform.SetPositionAndRotation(new Vector3(90, 35, 26.6f), Quaternion.Euler(20, 20, 0));
|
|
|
MainCamera.fieldOfView = 60;
|
|
|
|
|
|
- Director = MainCamera.GetComponent<PlayableDirector>();
|
|
|
if (Director == null)
|
|
|
{
|
|
|
- Log.Error("Not Found Camera PlayableDirector");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (Name_BindObj.Count == 0)
|
|
|
- {
|
|
|
- foreach (var bind in Director.playableAsset.outputs)
|
|
|
+ Director = MainCamera.GetComponent<PlayableDirector>();
|
|
|
+ if (Director == null)
|
|
|
{
|
|
|
- var obj = Director.GetGenericBinding(bind.sourceObject);
|
|
|
- Name_BindObj.Add(bind.streamName, obj);
|
|
|
+ Log.Error("Not Found Camera PlayableDirector");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (Name_BindObj.Count == 0)
|
|
|
+ {
|
|
|
+ foreach (var bind in Director.playableAsset.outputs)
|
|
|
+ {
|
|
|
+ var obj = Director.GetGenericBinding(bind.sourceObject);
|
|
|
+ Name_BindObj.Add(bind.streamName, obj);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- Director.stopped += (pd) =>
|
|
|
- {
|
|
|
- StopCallback?.Invoke();
|
|
|
- StopCallback = null;
|
|
|
- };
|
|
|
+ Director.stopped += (pd) =>
|
|
|
+ {
|
|
|
+ StopCallback?.Invoke();
|
|
|
+ StopCallback = null;
|
|
|
+ };
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[Event]
|