void Start()
{
this.character = gameObject.transform.FindChild("Character").gameObject;
if (isServer)
foreach (GameObject player in GameObject.FindGameObjectsWithTag("Player"))
player.GetComponent<SyncCharacter>().Life += 0;
if (!isLocalPlayer)
return;
this.inventory = gameObject.GetComponent<Inventory>();
this.controller = gameObject.GetComponent<Controller>();
this.bossfight = gameObject.GetComponent<BossFight>();
this.skin = Resources.Load<GUISkin>("Sprites/GUIskin/skin");
this.lifeMax = 100;
this.hungerMax = 100;
this.thirstMax = 100;
this.life = 100;
this.hunger = 100;
this.thirst = 100;
this.speed = 0;
this.cdSpeed = 0;
this.jump = 0;
this.cdJump = 0;
this.regen = 0;
this.cdRegen = 0;
this.poison = 0;
this.cdPoison = 0;
// Initialisation des images
this.lifeBar = new Texture2D[101];
for (int i = 0; i < 101; i++)
this.lifeBar[i] = Resources.Load<Texture2D>("Sprites/Bars/Life/LifeBar" + i.ToString());
this.hungerBar = new Texture2D[101];
for (int i = 0; i < 101; i++)
this.hungerBar[i] = Resources.Load<Texture2D>("Sprites/Bars/Hunger/HungerBar" + i.ToString());
this.ThirstBar = new Texture2D[101];
for (int i = 0; i < 101; i++)
this.ThirstBar[i] = Resources.Load<Texture2D>("Sprites/Bars/Thirst/ThirstBar" + i.ToString());
this.CmdLoad();
this.sounAudio = gameObject.GetComponent<Sound>();
}