Skip to content

Commit

Permalink
treeAndCrow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLissandra1 committed Apr 11, 2023
1 parent 2ee60aa commit 3df3db6
Show file tree
Hide file tree
Showing 220 changed files with 60,063 additions and 11 deletions.
11 changes: 6 additions & 5 deletions Assets/Resources/material/BackGroundMaterial.mat
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: BackGroundMaterial
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ValidKeywords: []
m_ValidKeywords:
- _EMISSION
m_InvalidKeywords:
- _DETAILSOURCE_SPECULARALPHA
- _ENABLETRIPLANARPROJECTION_ON
- _SOURCE_SPECULARALPHA
- _TRIPLANARSPACEPROJECTION_OBJECTSPACE
- _USEAOFROMMAINPROPERTIES_ON
- _USEEMISSIONFROMMAINPROPERTIES_ON
m_LightmapFlags: 4
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
Expand Down Expand Up @@ -95,7 +96,7 @@ Material:
- _EnableDetailMask: 0
- _EnableTriplanarProjection: 1
- _GlossMapScale: 1
- _Glossiness: 0.5
- _Glossiness: 0.139
- _GlossyReflections: 1
- _IntensityMask: 1
- _InvertABaseColor: 0
Expand All @@ -121,10 +122,10 @@ Material:
- _ZWrite: 1
- __dirty: 1
m_Colors:
- _Color: {r: 0.48905307, g: 0.6603774, b: 0.51951075, a: 1}
- _Color: {r: 0.47278365, g: 0.22659303, b: 0.5377358, a: 1}
- _DetailColor: {r: 1, g: 1, b: 1, a: 0}
- _DetailSpecularColor: {r: 1, g: 1, b: 1, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _EmissionColor: {r: 0.041533146, g: 0.16328318, b: 0.26415092, a: 1}
- _GlobalXYTilingXYZWOffsetXY: {r: 1, g: 1, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 0}
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scenes/Collision.unity
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
springCoefficient: 100
HalfSideLength: 20
FixPos: 0
FixPos: 3
mass: 10
plasticity: 0
--- !u!23 &116949236
Expand Down Expand Up @@ -404,7 +404,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1086847188}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 5, z: 0}
m_LocalPosition: {x: -2, y: 5, z: 0}
m_LocalScale: {x: 4, y: 4, z: 4}
m_ConstrainProportionsScale: 0
m_Children: []
Expand Down
232 changes: 228 additions & 4 deletions Assets/Scenes/FlagAndWind.unity
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 116949233}
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 18, z: 0}
m_LocalScale: {x: 1, y: 1, z: 0.8}
m_LocalScale: {x: 1, y: 1, z: 0.80000025}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!137 &116949239
SkinnedMeshRenderer:
Expand Down Expand Up @@ -278,6 +278,111 @@ SkinnedMeshRenderer:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_DirtyAABB: 0
--- !u!1001 &160421619
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 331248039}
m_Modifications:
- target: {fileID: 100124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_Icon
value:
objectReference: {fileID: 5721338939258241955, guid: 0000000000000000d000000000000000, type: 0}
- target: {fileID: 100124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_Name
value: crow
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalScale.x
value: 13.636364
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalScale.y
value: 9.374997
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalScale.z
value: 11.538463
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalPosition.x
value: -3.538462
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalPosition.y
value: 11.249997
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 90
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400124, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_ConstrainProportionsScale
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9500000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_Controller
value:
objectReference: {fileID: 9100000, guid: a24ec9cf4c2103646a47e0497a925d6b, type: 2}
- target: {fileID: 9500000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_UpdateMode
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9500000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_ApplyRootMotion
value: 1
objectReference: {fileID: 0}
- target: {fileID: 13700000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_UpdateWhenOffscreen
value: 0
objectReference: {fileID: 0}
- target: {fileID: 13700000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_Materials.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 13700000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 167c8145cdced1d43ba5318a1a0c0738, type: 2}
- target: {fileID: 13700000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
propertyPath: m_Materials.Array.data[1]
value:
objectReference: {fileID: 2100000, guid: 167c8145cdced1d43ba5318a1a0c0738, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0646ceebc81f52a4e8a676e94ab46092, type: 3}
--- !u!1 &329521172
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -325,8 +430,46 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &331248028 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4646848779288260960, guid: d679a7fc38586814796252032f3364e7, type: 3}
m_PrefabInstance: {fileID: 6500281633528176065}
m_PrefabAsset: {fileID: 0}
--- !u!54 &331248035
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 331248028}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!4 &331248039 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
m_PrefabInstance: {fileID: 6500281633528176065}
m_PrefabAsset: {fileID: 0}
--- !u!114 &331248040
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 331248028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1e728ce8e1cc8fe45b5a7e2c7f04e1be, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1155535163
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -618,3 +761,84 @@ MonoBehaviour:
m_EditorClassIdentifier:
sensitivity: 2
cam: {fileID: 1733875308}
--- !u!1001 &6500281633528176065
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalScale.x
value: 1.3
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalScale.y
value: 1.6000005
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalScale.z
value: 1.1
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalPosition.x
value: -4.5
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 288367671557682234, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1930546918066891207, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_Materials.Array.size
value: 2
objectReference: {fileID: 0}
- target: {fileID: 1930546918066891207, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_Materials.Array.data[1]
value:
objectReference: {fileID: 8655316347819729576, guid: d679a7fc38586814796252032f3364e7, type: 3}
- target: {fileID: 1930546918066891207, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_SelectedEditorRenderState
value: 3
objectReference: {fileID: 0}
- target: {fileID: 4646848779288260960, guid: d679a7fc38586814796252032f3364e7, type: 3}
propertyPath: m_Name
value: Tree
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d679a7fc38586814796252032f3364e7, type: 3}
38 changes: 38 additions & 0 deletions Assets/Scripts/DragObject.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DragObject : MonoBehaviour

{
private Vector3 mOffset;
private float mZCoord;
void OnMouseDown()
{
mZCoord = Camera.main.WorldToScreenPoint(

gameObject.transform.position).z;

// Store offset = gameobject world pos - mouse world pos

mOffset = gameObject.transform.position - GetMouseAsWorldPoint();
}

private Vector3 GetMouseAsWorldPoint()
{
// Pixel coordinates of mouse (x,y)
Vector3 mousePoint = Input.mousePosition;

// z coordinate of game object on screen
mousePoint.z = mZCoord;

// Convert it to world points
return Camera.main.ScreenToWorldPoint(mousePoint);
}

void OnMouseDrag()
{
transform.position = GetMouseAsWorldPoint() + mOffset;
}

}
11 changes: 11 additions & 0 deletions Assets/Scripts/DragObject.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3df3db6

Please sign in to comment.