Exemplo n.º 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>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     smokeOnGirl = GameObject.FindGameObjectWithTag("Player").GetComponent <SmokeOnGirl>();
 }