Exemplo n.º 1
0
    private new void Awake()
    {
        base.Awake();

        // Scripts
        _samusState = GetComponent <SamusState>();
        if (_samusState == null)
        {
            Debug.LogError("SamusState Script not found!");
            return;
        }

        _samusInput = GetComponent <SamusInput>();
        if (_samusInput == null)
        {
            Debug.LogError("SamusInput Script not found!");
            return;
        }

        _samusAudio = GetComponent <SamusAudio>();
        if (_samusAudio == null)
        {
            Debug.LogError("SamusAudio Script not found!");
            return;
        }
    }
Exemplo n.º 2
0
    private void Awake()
    {
        _playerInput = GetComponent <PlayerInput>();
        if (_playerInput == null)
        {
            Debug.LogError("Samus PlayerInput not found!");
            return;
        }

        _samusState = GetComponent <SamusState>();
        if (_samusState == null)
        {
            Debug.LogError("SamusState Script not found!");
            return;
        }

        _samusController = GetComponent <SamusController>();
        if (_samusController == null)
        {
            Debug.LogError("SamusController Script not found!");
            return;
        }

        _samusWeapons = GetComponent <SamusWeapons>();
        if (_samusWeapons == null)
        {
            Debug.LogError("SamusWeapons Script not found!");
            return;
        }
    }
Exemplo n.º 3
0
    private void Awake()
    {
        AwakeAnimatedObject(gameObject, out _animator, out _sprites);

        _samusState = GetComponent <SamusState>();
        if (_samusState == null)
        {
            Debug.LogError("SamusState Script not found!");
            return;
        }
    }
Exemplo n.º 4
0
    private void Awake()
    {
        _samusState = GetComponent <SamusState>();
        if (_samusState == null)
        {
            Debug.LogError("SamusState Script not found!");
            return;
        }

        _samusAudio = GetComponent <SamusAudio>();
        if (_samusAudio == null)
        {
            Debug.LogError("SamusAudio Script not found!");
            return;
        }
    }
Exemplo n.º 5
0
    private void Awake()
    {
        _audioSource = GetComponent <AudioSource>();
        if (_audioSource == null)
        {
            Debug.LogError("No Audio Source found for Samus");
            return;
        }

        _samusState = GetComponent <SamusState>();
        if (_samusState == null)
        {
            Debug.LogError("SamusState Script not found!");
            return;
        }
    }