private void OnTriggerEnter(Collider other) { BertController playerController = other.GetComponentInParent <BertController>(); if (playerController) { SpawnNext(); } }
void Start() { if (Instance != null) { Debug.LogError("Too many berts in scene"); return; } Instance = this; _rb = GetComponent <Rigidbody>(); ResetControllers(); Instance = this; }
public void TestCleanup() { _controller = null; }
public void TestInitialize() { _controller = new BertController(); }