public void Sign(int DayInt) { Debug.Log("DayInt:" + DayInt); int index = DayInt / 8; int offset = DayInt % 8; Debug.Log("index:" + index); Debug.Log("offset:" + offset); XPlayerPrefs.SetSign(index, offset, 1); }