Example #1
0
	// Use this for initialization

	void Start () {
		ownColor = gameObject.GetComponent<SpriteRenderer>().color;
		_myStats = new CharacterStats(gameObject.tag.ToString());
		if( _myStats.load() ){
			hp = _myStats.getHp();
			exp = _myStats.getExp();
			coin = _myStats.getCoin();
			max_hp = hp;
		}
	}