Пример #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");
     }
 }
Пример #4
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 ) ;
    }