Skip to content

Commit 885c892

Browse files
authored
Merge pull request #1 from Wolferacing/master
Wolf update 1, see changelog for info.
2 parents c4b91ec + 89f6f8a commit 885c892

File tree

85 files changed

+16385
-2688
lines changed

Some content is hidden

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

85 files changed

+16385
-2688
lines changed

Assets/Cue.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
public enum TargetHandType { Either = 0, Right = 1, Left = 2, None = 3 }
44
public enum TargetBehavior { Standard = 0, Vertical = 1, Horizontal = 2, Hold = 3, ChainStart = 4, Chain = 5, Melee = 6 }
5+
public enum TargetVelocity { Standard = 20, Vertical = 20, Horizontal = 20, Hold = 20, ChainStart = 1, Chain = 2, Melee = 3 }
56

67
[System.Serializable]
78
public class Cue
89
{
910
public int tick;
1011
public int tickLength;
1112
public int pitch;
12-
public int velocity;
13+
public TargetVelocity velocity = TargetVelocity.Standard;
1314
public GridOffset gridOffset = new GridOffset { x = 0, y = 0};
1415
public TargetHandType handType = TargetHandType.Right;
1516
public TargetBehavior behavior = TargetBehavior.Standard;

Assets/GridTarget.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
public TargetHandType handType;
44
public TargetBehavior behavior;
55
public float beatLength = 1;
6-
public int velocity = 20;
6+
public TargetVelocity velocity;
77
}

Assets/Materials/White.mat

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Material:
55
serializedVersion: 6
66
m_ObjectHideFlags: 0
77
m_CorrespondingSourceObject: {fileID: 0}
8-
m_PrefabInternal: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
910
m_Name: White
1011
m_Shader: {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
1112
m_ShaderKeywords:
@@ -79,5 +80,5 @@ Material:
7980
- _UseUIAlphaClip: 0
8081
- _ZWrite: 1
8182
m_Colors:
82-
- _Color: {r: 1, g: 1, b: 1, a: 1}
83+
- _Color: {r: 1, g: 0.910701, b: 0, a: 1}
8384
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

Assets/NoteGrid.cs

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections;
22
using System.Collections.Generic;
33
using UnityEngine;
4+
using UnityEngine.EventSystems;
45

56
public class NoteGrid : MonoBehaviour {
67

@@ -24,6 +25,9 @@ private void Update()
2425
{
2526
if (hover)
2627
{
28+
if (EventSystem.current.IsPointerOverGameObject())
29+
return;
30+
2731
var mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
2832
mousePos = SnapToGrid(mousePos);
2933
var ghostPos = ghost.position;
@@ -33,12 +37,18 @@ private void Update()
3337

3438
if (Input.GetMouseButtonDown(0))
3539
{
40+
if (EventSystem.current.IsPointerOverGameObject())
41+
return;
42+
3643
timeline.AddTarget(mousePos.x, mousePos.y);
3744
}
3845
}
3946

4047
if (Input.GetMouseButtonDown(1))
4148
{
49+
if (EventSystem.current.IsPointerOverGameObject())
50+
return;
51+
4252
timeline.DeleteTarget(NoteUnderMouse());
4353
}
4454

0 commit comments

Comments
 (0)