void IniciarFocarCamera(CamFeatures c) { Debug.Log("Iniciar focar camera"); if (dir == null) { dir = new InducedDirection(); } dir.OnStartFocus(); c.StarterQ = c.MyCamera.rotation; c.contadorDeTempo = 0; c.distQ = 0; }
public Vector3 SmoothInducedDirection(float h, float v) { if (dir == null) { dir = new InducedDirection(); } if (dir != null && MyCamera != null) { return(dir.Direction(State == StateCam.inFocusing, MyCamera, h, v)); } else if (MyCamera) { return(MyCamera.TransformDirection(new Vector3(h, 0, v))); } else { return(new Vector3(h, 0, v)); } }