Exemple #1
0
    public void initPlayer(PlayerLife P_mainPlayer)
    {
        if (!isReady4Map) {

            C_mapManager = GameObject.Find("MapManager").GetComponent<MapManager>();
            C_mapManager.initializeBeforeStart();
            C_mapManager.startMap();
            isReady4Map = true;
        }
        P_mainPlayer.StartLifeform();
        C_mapManager.setPlayerMain(P_mainPlayer);
    }