Skip to content

Commit

Permalink
New COMMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPEZ committed Jun 27, 2021
1 parent cff4420 commit 0fef6ce
Show file tree
Hide file tree
Showing 39 changed files with 270 additions and 253 deletions.
4 changes: 4 additions & 0 deletions Prototype/.idea/.idea.Prototype/.idea/encodings.xml

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

8 changes: 8 additions & 0 deletions Prototype/.idea/.idea.Prototype/.idea/indexLayout.xml

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

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

6 changes: 6 additions & 0 deletions Prototype/.idea/.idea.Prototype/.idea/vcs.xml

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

76 changes: 76 additions & 0 deletions Prototype/.idea/.idea.Prototype/.idea/workspace.xml

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

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

8 changes: 8 additions & 0 deletions Prototype/Assets/Plugins/Editor.meta

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

8 changes: 8 additions & 0 deletions Prototype/Assets/Plugins/Editor/JetBrains.meta

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

Binary file not shown.

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

142 changes: 0 additions & 142 deletions Prototype/Assets/Prefabs/goodSmile.prefab

This file was deleted.

3 changes: 3 additions & 0 deletions Prototype/Assets/Scenes/Main menu.unity
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6e92c96e95066574aa3130ef9cde1514, type: 3}
m_Name:
m_EditorClassIdentifier:
buttonType: 0
sourceSound: {fileID: 1365437298}
--- !u!1 &552923905
GameObject:
Expand Down Expand Up @@ -539,6 +540,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6e92c96e95066574aa3130ef9cde1514, type: 3}
m_Name:
m_EditorClassIdentifier:
buttonType: 1
sourceSound: {fileID: 1365437298}
--- !u!1 &1170947644
GameObject:
Expand Down Expand Up @@ -1080,6 +1082,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6e92c96e95066574aa3130ef9cde1514, type: 3}
m_Name:
m_EditorClassIdentifier:
buttonType: 4
sourceSound: {fileID: 1365437298}
--- !u!1 &1566214676
GameObject:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Buttons : MonoBehaviour {

public class Button : MonoBehaviour {
public enum ButtonType { Play, Tutorial, Market, Ads, Options, Main}
public ButtonType buttonType;

public AudioSource sourceSound;

private IEnumerator OnMouseUpAsButton()
{
SoundEffect(sourceSound);
yield return new WaitForSeconds(0.5f);
switch (gameObject.name)
switch (buttonType)
{
case "PlayButton":
case ButtonType.Play:
SceneManager.LoadScene("Play");
break;
case "TutorialButton":
case ButtonType.Tutorial:
SceneManager.LoadScene("Tutorial");
break;
case "MarketButton":
case ButtonType.Market:
SceneManager.LoadScene("Market");
break;
case "AdsButton":
case ButtonType.Ads:
SceneManager.LoadScene("Ads");
break;
case "OptionsButton":
case ButtonType.Options:
SceneManager.LoadScene("Options");
break;
case "MainMenuButton":
case ButtonType.Main:
SceneManager.LoadScene("Main menu");
break;

Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions Prototype/Assets/Scripts/MaxGems.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;

public class MaxGems : MonoBehaviour {
Expand Down
Loading

0 comments on commit 0fef6ce

Please sign in to comment.