void Start() { if (isPlayer) { _character = GlobalCharacter.generetaChar(); _character.sprite = Random.Range(1, 4); } }
void Start() { GlobalItens.Init(); GlobalCharacter.Init(); GlobalWorldMap.Init(); GlobalQuests.Init(); GlobalMap.Init(); GlobalInput.Init(); _itens = new ArrayList(); _npcs = new ArrayList(); AddItemToMap(GlobalItens.generateAlchemy(AlchemyType.HealLife), new Vector3(64, 96, -5)); GameCharacter test = GlobalCharacter.generetaChar(); test.name = "ERRROR"; test.sprite = 5; AddCharacterToMap(test, new Vector3(32, 32, -10)); }