//------------------------------------------------------------------------------------------------------------- public void StopRotation() { StationState = STATIONSTATE.IDLE; foreach (Label _label in Label) { _label.SetLabelInteractable = true; // and activate them again } }
//------------------------------------------------------------------------------------------------------------- public void RotateBox(int _direction) { m_direction = _direction; StationState = STATIONSTATE.ROTATING; foreach (Label _label in Label) { _label.SetLabelInteractable = false; // in order to prevent collision, set the colliders from the other labels inactive } }
public Payload_Station(Stream s) { if (Helper.ReadU8(s) == 1) { connectionInfo = new DS_ConnectionInfo(s); } if (Helper.ReadU8(s) == 1) { stationIdent = new StationIdentification(s); } if (Helper.ReadU8(s) == 1) { stationInfo = new StationInfo(s); } if (Helper.ReadU8(s) == 1) { stationState = (STATIONSTATE)Helper.ReadU16(s); } }