Example #1
0
    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;
 }
Example #3
0
 public void TestCleanup()
 {
     _controller = null;
 }
Example #4
0
 public void TestInitialize()
 {
     _controller = new BertController();
 }