void Start() { this.keys = new List <KeyCode>(); this.keys.Add(this.key1); this.keys.Add(this.key2); this.keys.Add(this.key3); this.keys.Add(this.key4); this.keys.Add(this.key5); this.target = GameObject.Find("GaugeInterface").GetComponent <GaugeInterface>(); }
void Awake() { Screen.SetResolution(1920, 1080, true, 30); if (instance == null) { instance = this; } else { Debug.LogError("Util is exists at " + this.gameObject.name); Destroy(this); } this.gaugeInterface = GetComponent <GaugeInterface>(); }