public void WatchMeNow() { if (hasFired) { return; } hasFired = true; lookScript = Camera.main.GetComponent <ForceLook>(); lookScript.lookAt = transform; StartCoroutine(WaitThenRelease()); }
// Start is called before the first frame update void Start() { TimerBeforeTravelCam = 3.0F; rb = GetComponent <Rigidbody>(); timer = TimerBeforeTravelCam; durationFieldOfView = 0.6f; SwitchFieldOfViewInterp = false; timerFieldOfView = durationFieldOfView; StartFieldOfView = 90.0F; EndFieldOfView = 60.0F; FirstInitSwitch = false; forceLookscript = Camera.main.gameObject.GetComponent <ForceLook>(); }
void OnEnable () { ForceLook = (ForceLook)target ; }
void OnEnable() { ForceLook = (ForceLook)target; }