protected override void OnDragDropRelease(GameObject surface) { base.OnDragDropRelease(surface); if (surface.tag == "ShotCutGrid" || surface.tag == "ShotCut") { ShotCutBoard.Instance().SetOneGridShotSkillByIdAndName(id, surface); } else { ResetPos(); } }
void Update () { if(Input.GetKeyDown(KeyCode.Alpha1)) { ShotCutBoard.Instance().UseOneGridSkill(1); } if(Input.GetKeyDown(KeyCode.Alpha2)) { ShotCutBoard.Instance().UseOneGridSkill(2); } if(Input.GetKeyDown(KeyCode.Alpha3)) { ShotCutBoard.Instance().UseOneGridSkill(3); } if(Input.GetKeyDown(KeyCode.Alpha4)) { ShotCutBoard.Instance().UseOneGridSkill(4); } if(Input.GetKeyDown(KeyCode.Alpha5)) { ShotCutBoard.Instance().UseOneGridSkill(5); } }