コード例 #1
0
ファイル: AppRoot.cs プロジェクト: jchansen/Unity3dArticles
    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);
    }
コード例 #2
0
    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);
    }
コード例 #3
0
ファイル: AppRoot.cs プロジェクト: jchansen/Unity3dArticles
    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);
    }
コード例 #4
0
    ///////////////////////////////////////////////////////////////////////////

    ///////////////////////////////////////////////////////////////////////////
    #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);
    }