-
Notifications
You must be signed in to change notification settings - Fork 557
feat: adding RNSM to boss room [MTT-3267] #621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 45 commits
e9a2f6c
611a998
d1d4ba9
36cd3cd
38b166c
0272ec3
21832e5
88dc66d
fccc507
bde22ce
52f45c4
ca264e4
f53d905
de619af
0aa9a40
65ec34f
2ae194a
709ebcc
3d6ac4e
644c8ae
8f57887
187a4a6
694b0d8
7d3bd91
3df0a12
f83cda3
3e01ede
8d405ac
178e961
fd2778c
26d7e37
b88fddf
020bc46
618d577
b02186b
23ba989
82d005d
d49af7d
9fad5c0
637ff27
959013f
1ced2a7
260a6a9
2803c38
751ac06
b0f985c
4ef8588
5dd57b3
921eaa3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
public class DontDestroyOnLoad : MonoBehaviour | ||
{ | ||
void Awake() | ||
{ | ||
DontDestroyOnLoad(gameObject); | ||
} | ||
} |
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections; | ||
using UnityEngine; | ||
|
||
public class AutoHide : MonoBehaviour | ||
fernando-cortez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
[SerializeField] | ||
float m_TimeToHideSeconds = 5f; | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
StartCoroutine(HideAfterSeconds()); | ||
} | ||
|
||
IEnumerator HideAfterSeconds() | ||
{ | ||
yield return new WaitForSeconds(m_TimeToHideSeconds); | ||
gameObject.SetActive(false); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using Unity.Multiplayer.Tools.NetStatsMonitor; | ||
using UnityEngine; | ||
|
||
namespace Unity.Multiplayer.Samples.Utilities.ClientAuthority | ||
{ | ||
public class NetStatsMonitorCustomization : MonoBehaviour | ||
{ | ||
[SerializeField] | ||
RuntimeNetStatsMonitor m_Monitor; | ||
|
||
const int k_NbTouchesToOpenWindow = 3; | ||
|
||
void Start() | ||
{ | ||
m_Monitor.enabled = false; | ||
} | ||
|
||
void Update() | ||
{ | ||
if (Input.GetKeyUp(KeyCode.S) || Input.touchCount == k_NbTouchesToOpenWindow && AnyTouchDown()) | ||
{ | ||
m_Monitor.enabled = !m_Monitor.enabled; // toggle | ||
} | ||
} | ||
|
||
static bool AnyTouchDown() | ||
{ | ||
foreach (var touch in Input.touches) | ||
{ | ||
if (touch.phase == TouchPhase.Began) | ||
{ | ||
return true; | ||
} | ||
} | ||
|
||
return false; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.