Ejemplo n.º 1
0
    void Awake()
    {
        instance = this;
        defeated = false;

        _sineWave        = GetComponent <SineWave>();
        _spriteRenderers = new List <SpriteRenderer>();
        addSpriteRenderers(transform);
    }
Ejemplo n.º 2
0
    void Awake()
    {
        instance = this;
        defeated = false;

        _sineWave  = GetComponent <SineWave>();
        sineSpeeds = new Vector2(_sineWave.xSpeed, _sineWave.ySpeed);

        _spriteRenderers = new List <SpriteRenderer>();
        addSpriteRenderers(transform);
    }