示例#1
0
 /// <summary>
 /// Resets the state of the judgement.
 /// </summary>
 public void Reset()
 {
     HitResult = HitResultType.None;
     HitOffset = 0;
     IsPassive = false;
     InputKey  = KeyCode.None;
     HitObjectIndexPath.Clear();
 }
示例#2
0
        public void ReadStreamData(BinaryReader reader)
        {
            HitResult = (HitResultType)reader.ReadInt32();

            HitOffset = reader.ReadSingle();

            IsPassive = reader.ReadBoolean();

            InputKey = (KeyCode)reader.ReadInt32();

            int indexPathCount = reader.ReadInt32();

            for (int i = 0; i < indexPathCount; i++)
            {
                HitObjectIndexPath.Add(reader.ReadInt32());
            }
        }