public void LoadOnHold(Hold hold) { bool[] onHolds = hold.GetOnHold(); for (int i = (int)Choice.RH; i <= (int)Choice.LF; i++) { if (onHolds[i]) { focusElems[i].Emphasis(); } else { focusElems[i].DeEmphasis(); } } choiced = (int)Choice.None; if (hold.gameObject.tag == "Hold_Normal") { focusElems[0].gameObject.SetActive(true); focusElems[1].gameObject.SetActive(true); } else if (hold.gameObject.tag == "Hold_Foot") { focusElems[0].gameObject.SetActive(false); focusElems[1].gameObject.SetActive(false); } }
public void Registration(Hold hold) { if (choiced != (int)Choice.None) { bool[] onHolds = hold.GetOnHold(); if (onHolds[choiced]) { hold.SetOnHold(choiced, false); curFocusHolds[choiced] = null; } else { hold.SetOnHold(choiced, true); if (curFocusHolds[choiced] != null) { curFocusHolds[choiced].SetOnHold(choiced, false); } curFocusHolds[choiced] = hold; } } }