Exemplo n.º 1
0
    private void SetSize(GameObject obj)
    {
        ActiveSonar activeSonar = currentObj.GetComponent <ActiveSonar>();

        if (activeSonar)
        {
            activeSonar.SetMaxRadius(radius);
        }
        SonarEffect effecter = currentObj.GetComponent <SonarEffect>();

        if (effecter)
        {
            effecter.Init(GetComponent <GUITexture>().pixelInset);
        }
    }