Ejemplo n.º 1
0
    // public string m_StatusText = "XD" ;

    // Use this for initialization
    void Start()
    {
        pLevelGeneratorPtr = this.gameObject.GetComponent <LevelGeneratorDynamic>();
        if (null == pLevelGeneratorPtr)
        {
            Debug.LogError("null == pLevelGeneratorPtr");
        }

        pUpdateTrainPtr = this.gameObject.GetComponent <UpdateTrainDynamic>();
        if (null == pUpdateTrainPtr)
        {
            Debug.LogError("null == pUpdateTrainPtr");
        }

        pUpdateStaionPtr = this.gameObject.GetComponent <UpdateStationDynamic>();
        if (null == pUpdateStaionPtr)
        {
            Debug.LogError("null == pUpdateStaionPtr");
        }

        pCameraControl = this.gameObject.GetComponent <CameraControl>();
        if (null == pCameraControl)
        {
            Debug.LogError("null == pCameraControl");
        }

        m_EditorRect = new Rect(0, 0,
                                m_DisplayEditorWindowWidth,
                                m_DisplayEditorWindowHeight);
    }
Ejemplo n.º 2
0
    // public string m_StatusText = "XD" ;
    // Use this for initialization
    void Start()
    {
        pLevelGeneratorPtr = this.gameObject.GetComponent<LevelGeneratorDynamic>() ;
        if( null == pLevelGeneratorPtr )
        {
            Debug.LogError( "null == pLevelGeneratorPtr" ) ;

        }

        pUpdateTrainPtr = this.gameObject.GetComponent<UpdateTrainDynamic>() ;
        if( null == pUpdateTrainPtr )
        {
            Debug.LogError( "null == pUpdateTrainPtr" ) ;
        }

        pUpdateStaionPtr = this.gameObject.GetComponent<UpdateStationDynamic>() ;
        if( null == pUpdateStaionPtr )
        {
            Debug.LogError( "null == pUpdateStaionPtr" ) ;
        }

        pCameraControl = this.gameObject.GetComponent<CameraControl>() ;
        if( null == pCameraControl )
        {
            Debug.LogError( "null == pCameraControl" ) ;
        }

        m_EditorRect = new Rect( 0 , 0 ,
                                m_DisplayEditorWindowWidth ,
                                m_DisplayEditorWindowHeight ) ;
    }