public NoteDetails(Note note, Vector3 gridPosition, Note.SlashDirection slashDirection, Note.NoteColor color, float timeToSpawn, bool inverted) { this.inverted = inverted; this.note = note; this.gridPosition = gridPosition; this.slashDirection = slashDirection; this.color = color; this.timeToSpawn = timeToSpawn; }
public static int GetBSaberCutDirection(Note.SlashDirection direction) { if (direction == Note.SlashDirection.UP) { return(0); } else if (direction == Note.SlashDirection.DOWN) { return(1); } else if (direction == Note.SlashDirection.LEFT) { return(2); } else if (direction == Note.SlashDirection.RIGHT) { return(3); } else if (direction == Note.SlashDirection.UPLEFT) { return(4); } else if (direction == Note.SlashDirection.UPRIGHT) { return(5); } else if (direction == Note.SlashDirection.DOWNLEFT) { return(6); } else if (direction == Note.SlashDirection.DOWNRIGHT) { return(7); } else if (direction == Note.SlashDirection.NONE) { return(8); } else { Debug.LogError("SlashDirection not found, this shouldn't happen - " + direction); return(8); } }