private void Awake() { if (Ins != null) { Destroy(gameObject); } else { Ins = this; } Init(); }
// Start is called before the first frame update void Start() { packCtrl = FindObjectOfType <PackCtrl>(); Debug.Assert(packCtrl != null); Debug.Assert(view != null); }