void Start()
    {
        print("New player Connected");
        redcube_prefab = Resources.Load("Prefabs/test/RedBoxPrefab") as GameObject;
        //reg player
        ManagerInstance = ChampSelectManager.singleton as ChampSelectManager;
        idx             = ManagerInstance.generate_player_idx(this);
        //ManagerInstance.reg_host_player (this);

        //setup player info
        champ_chosen = Champion.champion_name.END;        //the dummy one
        name         = "Player" + idx.ToString();
        if (isLocalPlayer)
        {
            Cmdchange_fac(ManagerInstance.PickAFaction(), idx);
        }
        Reg_buttons(idx);
    }
    //all the stats

    void Setup()
    {
        isPlayerActive = new bool[10];
        champions      = new Champion[10];
        ChampionNames  = new Champion.champion_name[10];
        Team_red       = new GameObject[5];
        Team_blue      = new GameObject[5];

        for (int i = 0; i < isPlayerActive.Length; ++i)
        {
            isPlayerActive [i] = false;
            ChampionNames[i]   = Champion.champion_name.START;
        }

        //Network Manager is already there
        ChampSelectManager champsel = GameObject.Find("NetworkManager").GetComponent <ChampSelectManager>();

        //for(int i = 0; i < champsel.BLUE_players; ++i){

        isPlayerActive [0] = true;
        isPlayerActive [5] = true;
    }
 public void init(int _idx)
 {
     ManagerInstance = ChampSelectManager.singleton as ChampSelectManager;
     idx             = _idx;
 }