|
@ -41,8 +41,8 @@ public class LoginUIManager : MonoBehaviour |
|
|
private string playerAnimal; |
|
|
private string playerAnimal; |
|
|
private Color playerColor; |
|
|
private Color playerColor; |
|
|
|
|
|
|
|
|
bool animalSelected = true; |
|
|
|
|
|
bool colorSelected = true; |
|
|
|
|
|
|
|
|
bool animalSelected = false; |
|
|
|
|
|
bool colorSelected = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Unity Functions
|
|
|
#region Unity Functions
|
|
@ -130,22 +130,6 @@ public class LoginUIManager : MonoBehaviour |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void OnClick_Color(Color playerColor) |
|
|
|
|
|
{ |
|
|
|
|
|
this.playerColor = playerColor; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void OnClick_Colour(string hex) |
|
|
|
|
|
{ |
|
|
|
|
|
Color newColor = new Color(); |
|
|
|
|
|
if (ColorUtility.TryParseHtmlString(hex, out newColor)){ |
|
|
|
|
|
this.playerColor = newColor; |
|
|
|
|
|
colorSelected = true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
clientManager.SendPlayerCDetails(playerColor); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void OnClick_Animal(string playerAnimal) |
|
|
public void OnClick_Animal(string playerAnimal) |
|
|
{ |
|
|
{ |
|
|
this.playerAnimal = playerAnimal; |
|
|
this.playerAnimal = playerAnimal; |
|
|