示例#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);
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     pLevelGenerator = this.gameObject.GetComponent<LevelGeneratorDynamic>() ;
     if( null == pLevelGenerator )
     {
         Debug.LogError( "null == pLevelGenerator" ) ;
     }
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     pLevelGenerator = this.gameObject.GetComponent <LevelGeneratorDynamic>();
     if (null == pLevelGenerator)
     {
         Debug.LogError("null == pLevelGenerator");
     }
 }
    // 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 ) ;
    }