Exemplo n.º 1
0
    private void Awake()
    {
        if (Ins != null)
        {
            Destroy(gameObject);
        }
        else
        {
            Ins = this;
        }

        Init();
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     packCtrl = FindObjectOfType <PackCtrl>();
     Debug.Assert(packCtrl != null);
     Debug.Assert(view != null);
 }