public void DrawPlayer(AirConsoleManager.Player player)
    {
        EditorGUILayout.BeginVertical("Box");
        EditorGUILayout.LabelField("Player " + player.PlayerId, EditorStyles.boldLabel);
        EditorGUILayout.LabelField("state: ", "" + player.state);

        EditorGUILayout.EndVertical();
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     airController             = AirConsoleManager.Instance.GetPlayer(playerId);
     PastelGenerator.Lightness = 0.8f;
     transform.Find("Ducky_Body").GetComponent <Renderer>().material.color = PastelGenerator.Generate();
     rb = GetComponent <Rigidbody>();
     transform.LookAt(FindObjectOfType <AntiManController>().transform);
 }