예제 #1
0
    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>();
    }
예제 #2
0
    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>();
    }