public void SetarCaracteristicas(CaracteristicasDeCamera car) { caracteristicas = car; if (car.alvo.tag == "Player") { if (posCamHeroi != null) { if (car.minhaCamera.position != posCamHeroi.position) { car.minhaCamera.position = posCamHeroi.position; car.minhaCamera.rotation = posCamHeroi.rotation; } } } else if (car.alvo.name == "CriatureAtivo") { if (posCamCriature != null) { car.minhaCamera.position = posCamCriature.position; car.minhaCamera.rotation = posCamCriature.rotation; } } }
public CameraDirecionavel(CaracteristicasDeCamera car) { this.caracteristicas = car; // if(this.caracteristicas.alvo!=null && this.caracteristicas.minhaCamera!= null) }