Exemplo n.º 1
0
    void Awake()
    {
        if( mInstance != null )
        {
            Debug.LogError( string.Format( "Only one instance of GameAgent allowed! Destroying:" + gameObject.name +", Other:" + mInstance.gameObject.name ) );
            return;
        }

        mInstance = this;
    }
Exemplo n.º 2
0
    void Start()
    {
        textStyle = FontAgent.GetTextStyle();

        newMonRect = new Rect(0f, Screen.height / 4f, Screen.width, Screen.height / 4f);

        vsRect = new Rect(0f, 0f, Screen.width, Screen.height);

        currentMonRect = new Rect(0f, Screen.height * 2f / 4f, Screen.width, Screen.height / 4f);
    }
Exemplo n.º 3
0
    void Awake()
    {
        if (mInstance != null)
        {
            Debug.LogError(string.Format("Only one instance of FontAgent allowed! Destroying:" + gameObject.name + ", Other:" + mInstance.gameObject.name));
            Destroy(gameObject);
            return;
        }

        mInstance = this;
    }
Exemplo n.º 4
0
 void Start()
 {
     textStyle = FontAgent.GetTextStyle();
     textRect  = new Rect(0f, Screen.height * 2f / 3f, Screen.width, Screen.height / 3f);
 }