Ejemplo n.º 1
0
 public void CharaterSelect(MapScript map, CharacterScript selectedHero, bool isPrepositioning)
 {
     HighLight.transform.position = new Vector3(selectedHero.transform.position.x, 13.5f, selectedHero.transform.position.z);
     HighLight.transform.parent = selectedHero.transform;
     Debug.Log("Select:" + map + " " +selectedHero +" "+ isPrepositioning);
     if (isPrepositioning)
     {
         map.ChangeState(MapSelectState.MOVE_SELECT);
     }
     else
     {
         network.CharacterSelect(selectedHero.Index);
         menuPanel.SetTarget(selectedHero);
     }
 }