protected override void OnDragDropRelease(GameObject surface)
    {
        base.OnDragDropRelease(surface);

        if (surface.tag == "ShotCutGrid" || surface.tag == "ShotCut")
        {
            ShotCutBoard.Instance().SetOneGridShotSkillByIdAndName(id, surface);
        }
        else
        {
            ResetPos();
        }
    }
Beispiel #2
0
	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);
		}
	}
Beispiel #3
0
 void Awake()
 {
     _instance = this;
 }