Ejemplo n.º 1
0
 IEnumerator test(Skill skill, SkillSelectMode skillSelectMode)
 {
     yield return PlayerInteractor.SkillSelect(skill, skillSelectMode);
     Debug.Log("select target is" + skill.skillTarget);
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 //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;
 }