Esempio n. 1
0
	// Use this for initialization
	void Start () {
		_hungerLevel = Constants.CHARACTER_STARTING_HUNGER;
		_hungerDecreaseRate = Random.Range(Constants.CHARACTER_MIN_HUNGERRATE, Constants.CHARACTER_MAX_HUNGERRATE);
		_originalDeathLevel = Random.Range(Constants.CHARACTER_MIN_DEATHRATE, Constants.CHARACTER_MAX_DEATHRATE);
		_deathLevel = _originalDeathLevel;
		InitEatAmount();
	
		// Instantiate a prefab here
		_characterUI = GetComponent<CharacterUI>();
		_characterUI.InitCharacterUI(_characterIndex, _parentTransform);
		SetCharacterState();
	}