Skip to content

Commit

Permalink
Created judge buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisas committed Mar 22, 2017
1 parent cd3f40f commit f2f509f
Show file tree
Hide file tree
Showing 7 changed files with 166 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Assets/Prefabs/Uitility.meta

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

53 changes: 53 additions & 0 deletions Assets/Prefabs/Uitility/Judge Skipper.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1144213567020578}
m_IsPrefabParent: 1
--- !u!1 &1144213567020578
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
m_Component:
- component: {fileID: 4801424888420580}
- component: {fileID: 114219897902964800}
m_Layer: 0
m_Name: Judge Skipper
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4801424888420580
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1144213567020578}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -21.578337, y: -5.9997215, z: -25.738598}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &114219897902964800
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1144213567020578}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0adad49f4ca2b8d40a8afbb299e8f147, type: 3}
m_Name:
m_EditorClassIdentifier:
8 changes: 8 additions & 0 deletions Assets/Prefabs/Uitility/Judge Skipper.prefab.meta

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

35 changes: 35 additions & 0 deletions Assets/Scripts/Utility/JudgeSkipper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JudgeSkipper : MonoBehaviour
{

private SceneSwitch m_SceneSwitch;

// Use this for initialization
void Start()
{
m_SceneSwitch = GameObject.FindGameObjectWithTag("Scene Loader").GetComponent<SceneSwitch>();
}

// Update is called once per frame
void Update()
{

if (Input.GetButtonDown("Next Level"))
{
m_SceneSwitch.loadScene(m_SceneSwitch.nextSceneName);
}

if (Input.GetButtonDown("Previous Level"))
{
m_SceneSwitch.loadScene(m_SceneSwitch.previousSceneName);
}

if (Input.GetButtonDown("Reset Level"))
{
m_SceneSwitch.loadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().name);
}
}
}
12 changes: 12 additions & 0 deletions Assets/Scripts/Utility/JudgeSkipper.cs.meta

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

48 changes: 48 additions & 0 deletions ProjectSettings/InputManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -709,3 +709,51 @@ InputManager:
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Next Level
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: +
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Previous Level
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: '-'
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Reset Level
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: 0
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
3 changes: 1 addition & 2 deletions ProjectSettings/TagManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ TagManager:
- CamWrap
- CloneNet
- FxTemporaire
- Scene Loader
layers:
- Default
- TransparentFX
Expand Down Expand Up @@ -67,8 +68,6 @@ TagManager:
-
-
-
-
-
m_SortingLayers:
- name: UI
uniqueID: 2155854549
Expand Down

0 comments on commit f2f509f

Please sign in to comment.