Beispiel #1
0
        public void AddTurk(Transform _transform, Camera _camera, HaloHit direction, AirValveController _valveController, string _serialPort)
        {
            Turk turk = new Turk(_transform, _camera, direction, _valveController, _serialPort);

            turks.Add(turk);
            Debug.Log("Add a turk: " + _transform.name);
        }
Beispiel #2
0
 public Turk(Transform _transform, Camera _camera, HaloHit _director, AirValveController _valveController, string _serialPort)
 {
     this.transform       = _transform;
     this.camera          = _camera;
     this.haloHiter       = _director;
     this.valveController = _valveController;
     this.serialPort      = _serialPort;
 }
Beispiel #3
0
        // Use this for initialization
        void Awake()
        {
            if (AirValveController.instance == null)
            {
                AirValveController.instance = this;
            }
            else
            {
                Destroy(this);
            }

            if (particle == null)
            {
                _CheckSetting("the particle not seted", false);
            }
        }