Ejemplo n.º 1
0
    private void Awake()
    {
        _particleSystem = GetComponentInChildren <ParticleSystem>();

        if (_collision == null)
        {
            _collision = FindObjectOfType <FauxCollision>();
        }

        if (_colorInit == null)
        {
            _colorInit = FindObjectOfType <ColorInstantiator>();
        }
    }
Ejemplo n.º 2
0
    private void Awake()
    {
        Cursor.visible = false;

        _hinges         = GetComponentsInChildren <Transform>();
        _hingesRenderer = GetComponentsInChildren <MeshRenderer>();
        _audioSource    = GetComponent <AudioSource>();

        for (int i = 0; i < NUMBER_OF_COLORABLES; i++)
        {
            _colorQueue.Add(ColorInstantiator.EColor.Empty);
        }

        if (_colorInit == null)
        {
            _colorInit = FindObjectOfType <ColorInstantiator>();
        }
    }