// Use this for initialization void Start () { if( null == s_TripleTaoManager ) { GameObject obj = GameObject.Find( "GlobalSingleton" ) ; if( null != obj ) { s_TripleTaoManager = obj.GetComponent<TripleTaoManager>() ; } } m_StartTime = Time.timeSinceLevelLoad ; }
// Use this for initialization void Start () { if( null == s_Manager ) { GameObject globalSingleton = GameObject.Find( "GlobalSingleton" ) ; if( null != globalSingleton ) { s_Manager = globalSingleton.GetComponent<TripleTaoManager>() ; } } if( null == m_UnitData ) { m_UnitData = this.gameObject.GetComponent<UnitData>() ; } }