public void Awake() { if (singleton == null) { singleton = this; return; } Destroy(this); }
private void Start() { wall = transform.parent.GetComponent <wallManager>(); }
public void Awake() { if (singleton == null) { singleton = this; return; } Destroy(this); }
private void Start() { wall = transform.parent.GetComponent <wallManager>(); }