コード例 #1
0
        void OnEnable()
        {
            this.tileMapObj = target as TileMapObject;

            if (!IsPrefabTarget() && tileMapObj != null)
            {
                tileMapObj.UpdateRotateAnchorPos();
            }
        }
コード例 #2
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            if (GUI.changed)
            {
                TileMapObject tileMapObj = target as TileMapObject;

                if (!IsPrefabTarget())
                {
                    tileMapObj.UpdateRotateAnchorPos();
                    tileMapObj.UpdateDirection();
                }
            }
        }