/// <summary> Sets up the position + FoV for the current type of gameplay </summary> /// <param name="_layout"> Layout info struct </param> public void SetLayout(GameMaster.ViewLayout _layout) { basePos = myTrans.localPosition = sourcePos = targetPos = _layout.cameraPos; myCam.fieldOfView = sourceFov = targetFov = _layout.cameraFoV; blendPos = blendFov = false; }
/// <summary> Sets the position, scale, etc for the current gameplay's view </summary> /// <param name="_layout"> Layout info struct </param> public void SetLayout(GameMaster.ViewLayout _layout) { myTrans.localPosition = _layout.groundPos; myTrans.localScale = _layout.groundScale; }