// PRIVATE STATIC //-------------------------------------- // Methods //-------------------------------------- ///<summary> /// Use this for initialization ///</summary> void Start() { //-------------------------------------- // Accessing Components/GameObjects //-------------------------------------- //PERMANENTLY STORE A COMPONENT REFERENCE _cubeRotationComponent = GetComponent <CubeRotateComponent>(); //FIND A GAMEOBJECT REFERENCE //GameObject managersGameObject = GameObject.Find ("ManagersGameObject") ; //Debug.Log ("managersGameObject: " + managersGameObject); }
// PRIVATE STATIC //-------------------------------------- // Methods //-------------------------------------- ///<summary> /// Use this for initialization ///</summary> void Start () { //-------------------------------------- // Accessing Components/GameObjects //-------------------------------------- //PERMANENTLY STORE A COMPONENT REFERENCE _cubeRotationComponent = GetComponent<CubeRotateComponent>(); //FIND A GAMEOBJECT REFERENCE //GameObject managersGameObject = GameObject.Find ("ManagersGameObject") ; //Debug.Log ("managersGameObject: " + managersGameObject); }