Commit 40d4a5c2 authored by 15박보승's avatar 15박보승

ForwardNote 위치 조정, 씬 약간의 추가작업

parent 986d2cb2
...@@ -7,7 +7,7 @@ Material: ...@@ -7,7 +7,7 @@ Material:
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: Laser m_Name: Laser 1
m_Shader: {fileID: 4800000, guid: 2d11a114f00dffe43a21a629f750b6b0, type: 3} m_Shader: {fileID: 4800000, guid: 2d11a114f00dffe43a21a629f750b6b0, type: 3}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
m_LightmapFlags: 0 m_LightmapFlags: 0
......
...@@ -6,7 +6,7 @@ AnimationClip: ...@@ -6,7 +6,7 @@ AnimationClip:
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: FireAnim.001 m_Name: Gun Fire
serializedVersion: 6 serializedVersion: 6
m_Legacy: 0 m_Legacy: 0
m_Compressed: 0 m_Compressed: 0
...@@ -750,7 +750,175 @@ AnimationClip: ...@@ -750,7 +750,175 @@ AnimationClip:
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0} m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant: m_ClipBindingConstant:
genericBindings: [] genericBindings:
- serializedVersion: 2
path: 1961480715
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2672250245
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2104266162
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 3578937222
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2242198026
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 989452539
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 728038943
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 3678200519
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2104266162
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 1961480715
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 3578937222
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2242198026
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2672250245
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 989452539
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 728038943
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 3678200519
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2104266162
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 1961480715
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 3578937222
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2242198026
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 2672250245
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 989452539
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 728038943
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 3678200519
attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
pptrCurveMapping: [] pptrCurveMapping: []
m_AnimationClipSettings: m_AnimationClipSettings:
serializedVersion: 2 serializedVersion: 2
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -19,7 +19,7 @@ public class ForwardNoteObject : NoteObject ...@@ -19,7 +19,7 @@ public class ForwardNoteObject : NoteObject
//Ray ray = Camera.main.ScreenPointToRay(new Vector3(Screen.width * x, Screen.height * y, 0)); //Ray ray = Camera.main.ScreenPointToRay(new Vector3(Screen.width * x, Screen.height * y, 0));
//endPoint = ray.GetPoint(perfectZ); //endPoint = ray.GetPoint(perfectZ);
endPoint = new Vector3(-100f + 200 * x, -100.0f + 200 * y, perfectZ); endPoint = new Vector3(-100f + 200 * x, 100 * y, perfectZ);
Ray ray = new Ray(Vector3.zero, endPoint.normalized); Ray ray = new Ray(Vector3.zero, endPoint.normalized);
endPoint = ray.GetPoint(perfectZ); endPoint = ray.GetPoint(perfectZ);
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pillar : MonoBehaviour
{
const float interval = 10.0f;
private Vector3 origin;
private float offsetTime;
[SerializeField]
private AnimationCurve curve;
private void Start()
{
origin = transform.position;
offsetTime = Random.Range(0, interval);
}
// Update is called once per frame
private void Update()
{
transform.position = origin + new Vector3(0, 50 * curve.Evaluate(Mathf.PingPong(Time.time + offsetTime, interval) / interval));
}
}
fileFormatVersion: 2 fileFormatVersion: 2
guid: d9a533cec04e2124e9c31541b4f63e72 guid: 51d9d83ca75262f418f77c42bbce6e44
folderAsset: yes MonoImporter:
DefaultImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment