Пример #1
0
    //MECANICAS
    private void ExploitResource(PersonController person, GameObject resource)
    {
        person.OnPersonEnterFaction += ReceiveNewResourceDiscovered; //Aca deberia cambiar a otro metodo que reciva los recursos explotados
        person.OnPersonFinishAssign += PersonFinishAssign;
        person.OnPersonEnterFactionWhitResources += ReceiveResourcesExploited;

        _knowResources.Remove(resource);
        _exploitedResources.Add(resource);

        person.AddResourceToExploit(resource);
        person.isAssigned = true;
    }