예제 #1
0
 void Init()
 {
     if (sourceStorage == null || destinationStorage == null)
     {
         sourceStorage      = SceneGraphSearch.Find(sourceStoragePath).GetComponentInChildren <StorageInventory>();
         destinationStorage = SceneGraphSearch.Find(destinationStoragePath).GetComponentInChildren <StorageInventory>();
     }
 }
예제 #2
0
 private void Start()
 {
     playableDirector          = GetComponent <PlayableDirector>();
     startOptions              = FindObjectOfType <StartOptions>();
     playableDirector.played  += OnPlayableDirectorPlayed;
     playableDirector.stopped += OnPlayableDirectorStopped;
     hiddenCanvases            = new Canvas[hiddenCanvasPaths.Length];
     for (int i = 0; i < hiddenCanvasPaths.Length; i++)
     {
         hiddenCanvases[i] = SceneGraphSearch.Find(hiddenCanvasPaths[i]).GetComponent <Canvas>();
     }
 }