14 lines
283 B
C#
14 lines
283 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
public class Sector: MonoBehaviour {
|
|
public int sector;
|
|
public Timing timing;
|
|
|
|
void OnTriggerEnter(Collider other) {
|
|
Debug.Log("Hit sector " + sector);
|
|
timing.NextSector(sector);
|
|
}
|
|
} |