public override void CreateTailConnector() { base.CreateTailConnector(); if (TailToNext != null) { if (Game.IsNoteColored) { TailToNext.Color = new Color32(ColorKey.r, ColorKey.g, ColorKey.b, ColorKey.a); } else { TailToNext.Color = new Color32(255, 255, 0, 255); } if (Mode.Equals(NoteInfo.LongNoteStart)) { TailToNext.SetEndPos(Game.Dispensor.Notes[NextNoteID].StartPos, 0, SizeInPixel * (140f / 100) * 1f / 2); } else if (Mode.Equals(NoteInfo.SlideNoteStart) || Mode.Equals(NoteInfo.SlideNoteCheckpoint)) { TailToNext.SetStartPos(StartPos, 0f, SizeInPixel * (140f / 100) * 1f / 2); TailToNext.SetEndPos(StartPos, 0f, SizeInPixel * (140f / 100) * 1f / 2); } } if (Mode.Equals(NoteInfo.SlideNoteCheckpoint)) { Game.Dispensor.VisibleNoteCount--; } TailCreated = true; }
public override void CreateTailConnector() { base.CreateTailConnector(); if (TailToNext != null) { if (Game.IsNoteColored) { TailToNext.Color = new Color32(ColorKey.r, ColorKey.g, ColorKey.b, 180); } else { TailToNext.Color = new Color32(255, 255, 255, 180); } if (Mode.Equals(NoteInfo.LongNoteStart)) { TailToNext.SetEndPos(Game.Dispensor.Notes[NextNoteID].StartPos, 0, 0); } else if (Mode.Equals(NoteInfo.SlideNoteStart) || Mode.Equals(NoteInfo.SlideNoteCheckpoint)) { TailToNext.SetStartPos(StartPos, 0f, 0); TailToNext.SetEndPos(Game.Dispensor.Notes[NextNoteID].StartPos, 0f, 0); } } TailCreated = true; }
public override void CreateTailConnector() { base.CreateTailConnector(); if (TailToNext != null) { if (Game.IsNoteColored) { TailToNext.Color = new Color32(ColorKey.r, ColorKey.g, ColorKey.b, 180); } else { TailToNext.Color = new Color32(255, 255, 255, 180); } if (Mode.Equals(NoteInfo.LongNoteStart)) { TailToNext.SetEndPos(Game.Dispensor.Notes[NextNoteID].StartPos, 0, 0); } else if (Mode.Equals(NoteInfo.SlideNoteStart) || Mode.Equals(NoteInfo.SlideNoteCheckpoint)) { TailToNext.SetStartPos(StartPos, 0f, 0); TailToNext.SetEndPos(Game.Dispensor.Notes[NextNoteID].StartPos, 0f, 0); } } if (!Flick.Equals(FlickMode.None)) { GameObject MyConnector = Instantiate(Game.BaseConnector) as GameObject; MyConnector.name = "c" + ID.ToString(); ConnectorToNext = MyConnector.GetComponent <ImprovedConnector>(); ConnectorToNext.OwnerID = ID; if (Game.IsNoteColored) { ConnectorToNext.MainRenderer.material.color = new Color32(ColorKey.r, ColorKey.g, ColorKey.b, 180); } ConnectorToNext.EndPos = Game.Dispensor.Notes[NextNoteID].StartPos; ConnectorToNext.EndScale = 0; Game.Dispensor.Notes[NextNoteID].ConnectorsFromPrevious.Add(ConnectorToNext); } TailCreated = true; }