Skip to content

Commit c94783a

Browse files
committed
Initial commit
0 parents  commit c94783a

43 files changed

Lines changed: 3270 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# =============== #
2+
# Unity generated #
3+
# =============== #
4+
[Tt]emp/
5+
[Oo]bj/
6+
[Bb]uild
7+
/[Bb]uilds/
8+
/[Ll]ibrary/
9+
sysinfo.txt
10+
*.stackdump
11+
/Assets/AssetStoreTools*
12+
*.apk
13+
*.unitypackage
14+
15+
# ===================================== #
16+
# Visual Studio / MonoDevelop generated #
17+
# ===================================== #
18+
[Ee]xported[Oo]bj/
19+
.vs/
20+
/*.userprefs
21+
/*.csproj
22+
/*.pidb
23+
*.pidb.meta
24+
/*.suo
25+
/*.sln*
26+
/*.user
27+
/*.unityproj
28+
/*.booproj
29+
.consulo/
30+
/*.tmp
31+
/*.svd
32+
33+
# ============ #
34+
# OS generated #
35+
# ============ #
36+
.DS_Store*
37+
._*
38+
.Spotlight-V100
39+
.Trashes
40+
Icon?
41+
ehthumbs.db
42+
[Tt]humbs.db
43+
[Dd]esktop.ini
44+
Corridor/Library/ShaderCache/
45+
Corridor/Library/metadata/

Assets/Draw.cs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
//using System.Numerics;
4+
using UnityEngine;
5+
6+
public class Draw : MonoBehaviour
7+
{
8+
public GameObject video;
9+
public GameObject line;
10+
private Vector2 touchStart;
11+
private GameObject store;
12+
void Start() {
13+
//Set screen orientation
14+
Screen.orientation = ScreenOrientation.Landscape;
15+
Screen.orientation = ScreenOrientation.AutoRotation;
16+
Screen.autorotateToPortrait = false;
17+
Screen.autorotateToPortraitUpsideDown = false;
18+
}
19+
20+
void Update()
21+
{
22+
//Debug.Log(Input.touchCount);
23+
if (Input.touchCount > 0) {
24+
Touch touch = Input.GetTouch(0);
25+
Vector3 touchpos = Camera.main.ScreenToWorldPoint(touch.position);
26+
touchpos.z = 0;
27+
transform.position = touchpos;
28+
if (touch.phase == TouchPhase.Began) {
29+
Debug.Log(touchpos);
30+
touchStart = touchpos;
31+
store = Instantiate(line, transform.position, transform.rotation);
32+
}
33+
if (touch.phase == TouchPhase.Ended) {
34+
Destroy(store);
35+
}
36+
}
37+
}
38+
39+
void StartVideo() {
40+
var script = video.GetComponent<Video>();
41+
script.Play();
42+
}
43+
}

Assets/Draw.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Line.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
public class Line : MonoBehaviour
6+
{
7+
// Start is called before the first frame update
8+
void Start()
9+
{
10+
11+
}
12+
13+
// Update is called once per frame
14+
void Update()
15+
{
16+
17+
}
18+
}

Assets/Line.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Line.prefab

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!1 &1945975318650849093
4+
GameObject:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
serializedVersion: 6
10+
m_Component:
11+
- component: {fileID: 1945975318650849095}
12+
- component: {fileID: 1945975318650849094}
13+
- component: {fileID: 863930387729394175}
14+
m_Layer: 0
15+
m_Name: Line
16+
m_TagString: Untagged
17+
m_Icon: {fileID: 0}
18+
m_NavMeshLayer: 0
19+
m_StaticEditorFlags: 0
20+
m_IsActive: 1
21+
--- !u!4 &1945975318650849095
22+
Transform:
23+
m_ObjectHideFlags: 0
24+
m_CorrespondingSourceObject: {fileID: 0}
25+
m_PrefabInstance: {fileID: 0}
26+
m_PrefabAsset: {fileID: 0}
27+
m_GameObject: {fileID: 1945975318650849093}
28+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
29+
m_LocalPosition: {x: -1.485, y: 0.627, z: 0}
30+
m_LocalScale: {x: 1, y: 1, z: 1}
31+
m_Children: []
32+
m_Father: {fileID: 0}
33+
m_RootOrder: 0
34+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
35+
--- !u!212 &1945975318650849094
36+
SpriteRenderer:
37+
m_ObjectHideFlags: 0
38+
m_CorrespondingSourceObject: {fileID: 0}
39+
m_PrefabInstance: {fileID: 0}
40+
m_PrefabAsset: {fileID: 0}
41+
m_GameObject: {fileID: 1945975318650849093}
42+
m_Enabled: 1
43+
m_CastShadows: 0
44+
m_ReceiveShadows: 0
45+
m_DynamicOccludee: 1
46+
m_MotionVectors: 1
47+
m_LightProbeUsage: 1
48+
m_ReflectionProbeUsage: 1
49+
m_RayTracingMode: 0
50+
m_RayTraceProcedural: 0
51+
m_RenderingLayerMask: 1
52+
m_RendererPriority: 0
53+
m_Materials:
54+
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
55+
m_StaticBatchInfo:
56+
firstSubMesh: 0
57+
subMeshCount: 0
58+
m_StaticBatchRoot: {fileID: 0}
59+
m_ProbeAnchor: {fileID: 0}
60+
m_LightProbeVolumeOverride: {fileID: 0}
61+
m_ScaleInLightmap: 1
62+
m_ReceiveGI: 1
63+
m_PreserveUVs: 0
64+
m_IgnoreNormalsForChartDetection: 0
65+
m_ImportantGI: 0
66+
m_StitchLightmapSeams: 1
67+
m_SelectedEditorRenderState: 0
68+
m_MinimumChartSize: 4
69+
m_AutoUVMaxDistance: 0.5
70+
m_AutoUVMaxAngle: 89
71+
m_LightmapParameters: {fileID: 0}
72+
m_SortingLayerID: 0
73+
m_SortingLayer: 0
74+
m_SortingOrder: 0
75+
m_Sprite: {fileID: 21300000, guid: 0ea588bedf09ef24ab2a1343271e4bfd, type: 3}
76+
m_Color: {r: 1, g: 1, b: 1, a: 1}
77+
m_FlipX: 0
78+
m_FlipY: 0
79+
m_DrawMode: 0
80+
m_Size: {x: 0.42, y: 0.42}
81+
m_AdaptiveModeThreshold: 0.5
82+
m_SpriteTileMode: 0
83+
m_WasSpriteAssigned: 1
84+
m_MaskInteraction: 0
85+
m_SpriteSortPoint: 0
86+
--- !u!114 &863930387729394175
87+
MonoBehaviour:
88+
m_ObjectHideFlags: 0
89+
m_CorrespondingSourceObject: {fileID: 0}
90+
m_PrefabInstance: {fileID: 0}
91+
m_PrefabAsset: {fileID: 0}
92+
m_GameObject: {fileID: 1945975318650849093}
93+
m_Enabled: 1
94+
m_EditorHideFlags: 0
95+
m_Script: {fileID: 11500000, guid: 913387855c96efd43b84aad41e2587c9, type: 3}
96+
m_Name:
97+
m_EditorClassIdentifier:

Assets/Line.prefab.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Scenes.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)