protected override void OnDestroy() { if (statusHUD != null) { statusHUD.Destroy(); } HardcoreMode.RemoveController(this); base.OnDestroy(); }
protected override void Start() { base.Start(); if (ChaControl.gameObject.transform.parent.name.Contains("Merchant")) { return; } if (ChaControl.gameObject.transform.parent.name.Contains("Player")) { statusHUD = new StatusHUD("", new Vector3(-950, 515, 0)); } else { statusHUD = new StatusHUD(ChaControl.fileParam.fullname, new Vector3(-950, 425, 0)); } HardcoreMode.AddController(this); }