private TransformObject mTransform; // TransformObject implements rotate / pan / zoom #endregion Fields #region Methods void Start() { // Find cGONameFlat in scene mGOFlat = GameObject.Find(cGONameFlat); // instantiate TransformObject and sets its rotate around object mTransform = new TransformObject(); mTransform.SetTransformRotateAround(mGOFlat.transform); }
void Start() { // Find cGONameFlat in scene mGOFlat = GameObject.Find(cGONameFlat); // instantiate TransformObject and sets its rotate around object mTransform = new TransformObject(); mTransform.SetTransformRotateAround(mGOFlat.transform); }
public void Start() { // Find cGONameFlat in scene mGOFlat = GameObject.Find(cGONameFlat); // foreach (var item in mGORoomsNames) { GameObject goRoom = GameObject.Find(item); mGORooms.Add(goRoom); } // instantiate TransformObject and sets its rotate around object mTransform = new TransformObject(); mTransform.SetTransformRotateAround(mGOFlat.transform); }
/////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// #region Interface public void Start() { // Find cGONameFlat in scene mGOFlat = GameObject.Find(cGONameFlat); // foreach (var item in mGORoomsNames) { GameObject goRoom = GameObject.Find(item); mGORooms.Add(goRoom); } // instantiate TransformObject and sets its rotate around object mTransform = new TransformObject(); mTransform.SetTransformRotateAround(mGOFlat.transform); }