Skip to content

Commit 7db5a86

Browse files
author
Tyler Eichten
committed
v1.0.0 commit
1 parent d780f78 commit 7db5a86

File tree

11 files changed

+720
-55
lines changed

11 files changed

+720
-55
lines changed

Assets/Arm.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ public class Arm : MonoBehaviour
1010
public GameObject Idle;
1111
public GameObject Punch;
1212
public GameObject Block;
13-
// Update is called once per frame
13+
14+
1415
void LateUpdate()
1516
{
1617
Idle.SetActive(Type == ArmType.Idle);

Assets/Head.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ public enum HeadType { Idle, HitUp, HitDown, Stunned, Down }
77
public class Head : MonoBehaviour
88
{
99

10+
public Player Player;
11+
1012
public HeadType Type;
1113

1214
public GameObject Idle;
@@ -17,10 +19,11 @@ public class Head : MonoBehaviour
1719

1820
void LateUpdate()
1921
{
20-
Idle.SetActive(Type == HeadType.Idle);
21-
HitUp.SetActive(Type == HeadType.HitUp);
22-
HitDown.SetActive(Type == HeadType.HitDown);
23-
Stunned.SetActive(Type == HeadType.Stunned);
24-
Down.SetActive(Type == HeadType.Down);
22+
23+
Idle.SetActive(!Player.IsDown && Type == HeadType.Idle);
24+
HitUp.SetActive(!Player.IsDown && Type == HeadType.HitUp);
25+
HitDown.SetActive(!Player.IsDown && Type == HeadType.HitDown);
26+
Stunned.SetActive(!Player.IsDown && Type == HeadType.Stunned);
27+
Down.SetActive(Player.IsDown);
2528
}
2629
}

Assets/Images/mainmenu.png

235 KB
Loading

Assets/Images/mainmenu.png.meta

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

Assets/Scenes/InGame.unity

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6745,6 +6745,11 @@ PrefabInstance:
67456745
m_Modification:
67466746
m_TransformParent: {fileID: 0}
67476747
m_Modifications:
6748+
- target: {fileID: 4173967516212707280, guid: 747b3fe6621174b43a9334b604dd81e9,
6749+
type: 3}
6750+
propertyPath: Player
6751+
value:
6752+
objectReference: {fileID: 1985387013}
67486753
- target: {fileID: 7765708640091789642, guid: 747b3fe6621174b43a9334b604dd81e9,
67496754
type: 3}
67506755
propertyPath: m_Name
@@ -11739,6 +11744,11 @@ PrefabInstance:
1173911744
m_Modification:
1174011745
m_TransformParent: {fileID: 0}
1174111746
m_Modifications:
11747+
- target: {fileID: 4173967516212707280, guid: 747b3fe6621174b43a9334b604dd81e9,
11748+
type: 3}
11749+
propertyPath: Player
11750+
value:
11751+
objectReference: {fileID: 519420030}
1174211752
- target: {fileID: 7765708640004995713, guid: 747b3fe6621174b43a9334b604dd81e9,
1174311753
type: 3}
1174411754
propertyPath: m_Color.r

Assets/Scenes/MainMenu.unity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ MonoBehaviour:
854854
m_OnCullStateChanged:
855855
m_PersistentCalls:
856856
m_Calls: []
857-
m_Sprite: {fileID: 21300000, guid: bfc03b7bb61581a42806d77b10a62677, type: 3}
857+
m_Sprite: {fileID: 21300000, guid: 8eb946bd03d380e4b9738cb3434c7c6e, type: 3}
858858
m_Type: 0
859859
m_PreserveAspect: 0
860860
m_FillCenter: 1

Assets/Scripts/Data/Data.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ public PlayerData(char[] name, int style) : this(new string(name), style) { }
132132
}
133133

134134
public static class GameData {
135-
public static PlayerData P1Data = new PlayerData("P1L", 0);
136-
public static PlayerData P2Data = new PlayerData("P2R", 1);
135+
public static PlayerData P1Data = new PlayerData("P1L", 1);
136+
public static PlayerData P2Data = new PlayerData("P2R", 0);
137137

138138
public static PlayerStats P1Stats = new PlayerStats();
139139
public static PlayerStats P2Stats = new PlayerStats();

Assets/Scripts/Player/InGameTPAssetSetter.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,4 @@ void Start() {
4949
BlockR.sprite = style.TPArmBlock;
5050
PunchR.sprite = style.TPArmPunch;
5151
}
52-
53-
// Update is called once per frame
54-
void Update()
55-
{
56-
57-
}
5852
}

0 commit comments

Comments
 (0)