Exemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        CloudController cloud = collision.GetComponentInParent <CloudController>();

        if (cloud.IsBeingDestroyed)
        {
            return;
        }

        if (!cloud.IsAngry)
        {
            _pegi.OnEnterInNormalCloud();
        }
        else
        {
            _pegi.OnEnterInAngryCloud();
        }
    }