IEnumerator test(Skill skill, SkillSelectMode skillSelectMode)
 {
     yield return PlayerInteractor.SkillSelect(skill, skillSelectMode);
     Debug.Log("select target is" + skill.skillTarget);
 }
 public void init(Skill skill,SkillSelectMode skillSelectMode )
 {
     this.skillSelectMode = skillSelectMode;
     this.skill = skill;
     enabled = true;
     done = false;
     if (skillSelectMode == SkillSelectMode.Ground || skillSelectMode == SkillSelectMode.Unit)
     {
         Cursor.SetCursor(PlayerInteractor.Instance.m_select, Vector2.zero, CursorMode.ForceSoftware);
     }
 }
 //void onMouseOutUnit(InteractionEvent e)
 //{
 //    Renderer renderer = e.target.GetComponentInChildren<Renderer>();
 //    //debug.log(renderer.material.shader.name);
 //    Debug.Log("out:"+hoveredTargetShader.name);
 //    if (renderer)
 //    {
 //        renderer.material.shader = hoveredTargetShader;
 //    }
 //}
 public static Action SkillSelect(Skill skill,SkillSelectMode skillSelectMode)
 {
     Instance.skillSelector.init(skill, skillSelectMode);
     return Instance.skillSelector;
 }