void Awake() { //Phone Bar if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } //Level Bar _csvLeveling = CSVLeveling.Instance; EventDispatcher.StartListening(Vars.LocalClientDisconnect, NetworkDisconnect); ImageTarget = GameObject.Find("ImageTarget"); }
void Start() { levelData = CSVLeveling.Instance; GetComponent <Image>().color = Color.grey; EventDispatcher.StartListening(Vars.LocalClientDisconnect, NetworkDisconnect); }