Esempio n. 1
0
    void CreatePlayer()     // PLayer Creatiom
    {
        player = Instantiate(playerPrefab, transform.position, Quaternion.identity) as GameObject;
        PlayerEnemyHandler enemyHand = player.GetComponent <PlayerEnemyHandler> ();

        player.GetComponent <PlayerTag> ().Id = id;
        tutorial.GetComponent <TutorialController> ().enemyHand = enemyHand;

        AssembleStatsText();
        Player_Health base_health = player.GetComponent <Player_Health> ();

        base_health.SetInvincibilty(true);
    }