示例#1
0
    // Use this for initialization
    void Start()
    {
        alturaTexto = 30;
        larguraTexto = 100;

        posX = Screen.width - (larguraTexto) - 5; // Screen.width = largura do monitor
        posY = Screen.height / 2 - Screen.height / 2 + alturaTexto/2; // Screen.height = altura do monitor

        dadosOgro = GetComponent<DadosOgro>();

        colGatinho = false;
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        alturaTexto  = 30;
        larguraTexto = 100;

        posX = Screen.width - (larguraTexto) - 5;                       // Screen.width = largura do monitor
        posY = Screen.height / 2 - Screen.height / 2 + alturaTexto / 2; // Screen.height = altura do monitor

        dadosOgro = GetComponent <DadosOgro>();

        colGatinho = false;
    }