blob: 5915f4f72bd9127690c1c60980e753b0f6222ad3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System;
using UnityEngine;
public class ConditionalHide : MonoBehaviour
{
public RuntimePlatform[] HideForPlatforms = new RuntimePlatform[]
{
RuntimePlatform.WindowsPlayer
};
private void Awake()
{
for (int i = 0; i < this.HideForPlatforms.Length; i++)
{
if (this.HideForPlatforms[i] == RuntimePlatform.WindowsPlayer)
{
base.gameObject.SetActive(false);
}
}
}
}
|