示例#1
0
 void Awake()
 {
     _smokeOnGirl          = GetComponent <SmokeOnGirl>();
     _rigidBody            = GetComponent <Rigidbody>();
     _anim                 = GetComponentInChildren <FireGirlAnimationController>();
     _gameController       = FindObjectOfType <GameController>();
     _audioEvents          = new List <AudioEvent>(GetComponents <AudioEvent>());
     _salamanderController = FindObjectOfType <SalamanderController>();
     _attachToPlane        = GetComponent <AttachToPlane>();
 }
示例#2
0
 private void Awake()
 {
     _timeline             = GetComponent <PlayableDirector>();
     _salamanderController = FindObjectOfType <SalamanderController>();
     _loadBaseSceneManager = FindObjectOfType <LoadBaseSceneManager>();
     if (!_salamanderController)
     {
         Debug.LogWarning("TriggerCutscene: Unable to find Sally :(");
     }
     _pauseButton = GameObject.Find("PauseButton");
 }