void Start() { if (_collider == null) { throw new NullReferenceException("Collider cannot be null!"); } _cam = GlobalCamera.instance; _collider.isTrigger = true; }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }
void Awake() { instance = this; }
private void Awake() { instance = this; camera = GetComponent <Camera>(); }