SwitchSubActiveStatus.cs 235 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 using UnityEngine; using System; public class SwitchSubActiveStatus : MonoBehaviour { void Start() { string[] strArg = Environment.GetCommandLineArgs(); gameObject.SetActive(strArg.Length < 3 || strArg[2].Equals("1")); } }