void Start() { //_player = _keyAction.GetPlayers(); if (_audioPlayer == null) { _audioPlayer = GameObject.Find("AudioPlayer").GetComponent <AudioPlayer>(); } if (_startCount == null) { _startCount = GameObject.Find("StartCount").GetComponent <StartCount>(); } if (_timeCount == null) { _timeCount = GameObject.Find("Time").GetComponent <TimeCount>(); } _randomBullet = GetComponent <RandomBullet>(); _characterData = GetComponentInChildren <CharacterData>(); }
void Start() { //_player = _keyAction.GetPlayers(); if (_audioPlayer == null) { _audioPlayer = GameObject.Find("AudioPlayer").GetComponent<AudioPlayer>(); } if (_startCount == null) { _startCount = GameObject.Find("StartCount").GetComponent<StartCount>(); } if (_timeCount == null) { _timeCount = GameObject.Find("Time").GetComponent<TimeCount>(); } _randomBullet = GetComponent<RandomBullet>(); _characterData = GetComponentInChildren<CharacterData>(); }