public static int StartCutscene(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); cutsceneCamera.StartCutscene(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { CutsceneCamera o = new CutsceneCamera(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_m_initOrthographicSize(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, cutsceneCamera.m_luaExportHelper.m_initOrthographicSize); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_GetAnimationOffset(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); Vector3 o = cutsceneCamera.m_luaExportHelper.__callBase_GetAnimationOffset(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int Update(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); float dt; LuaObject.checkType(l, 2, out dt); cutsceneCamera.Update(dt); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int Initialize(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); GameObject go; LuaObject.checkType <GameObject>(l, 2, out go); cutsceneCamera.Initialize(go); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_clipAnimator(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); Animator clipAnimator; LuaObject.checkType <Animator>(l, 2, out clipAnimator); cutsceneCamera.m_luaExportHelper.m_clipAnimator = clipAnimator; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_PlayAnimation(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); string name; LuaObject.checkType(l, 2, out name); cutsceneCamera.m_luaExportHelper.__callBase_PlayAnimation(name); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_IsCulled(IntPtr l) { int result; try { int num = LuaDLL.lua_gettop(l); if (num == 2) { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); Vector2 p; LuaObject.checkType(l, 2, out p); bool b = cutsceneCamera.m_luaExportHelper.__callBase_IsCulled(p); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } else if (num == 3) { CutsceneCamera cutsceneCamera2 = (CutsceneCamera)LuaObject.checkSelf(l); Vector2 bmin; LuaObject.checkType(l, 2, out bmin); Vector2 bmax; LuaObject.checkType(l, 3, out bmax); bool b2 = cutsceneCamera2.m_luaExportHelper.__callBase_IsCulled(bmin, bmax); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b2); result = 2; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function __callBase_IsCulled to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_GetViewSize(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); float o; float o2; cutsceneCamera.m_luaExportHelper.__callBase_GetViewSize(out o, out o2); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); LuaObject.pushValue(l, o2); result = 3; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_Initialize(IntPtr l) { int result; try { CutsceneCamera cutsceneCamera = (CutsceneCamera)LuaObject.checkSelf(l); GameObject cameraGo; LuaObject.checkType <GameObject>(l, 2, out cameraGo); GameObject animatorGo; LuaObject.checkType <GameObject>(l, 3, out animatorGo); cutsceneCamera.m_luaExportHelper.__callBase_Initialize(cameraGo, animatorGo); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Puts the game into a cutscene mode, changing the camera void StartCutscene() { mainCamera.SetActive(false); cutsceneCamera.SetActive(true); // The cutscene camera will be inactive from the start, so we can't easily get its // components. This ensures that we do. if (cs == null) { cs = cutsceneCamera.GetComponent <CutsceneCamera> (); } cutsceneActive = true; audioListener.SetActive(false); cutsceneActive = true; if (uiManager == null) { uiManager = GetComponent <UIManager> (); } uiManager.HideReadable(); }
// Use this for initialization void Start() { skullIcon_01.enabled = true; skullIcon_02.enabled = false; skullIcon_03.enabled = false; // This uses character controller since you don't want physics to affect the character with its camera // which can cause nausea. From experience, rigidbody remembers the forces applied to it even when kinematic // therefore when turned off, it gets applied to the system. m_controller = GetComponent <CharacterController>(); m_camera = GetComponentInChildren <Camera>(); m_eventManager = FindObjectOfType <EventManager>(); m_playerCollider = GetComponent <CapsuleCollider>(); m_originalHeight = m_controller.height; m_originalCentre = m_controller.center; m_cameraStandPosition = m_camera.transform.localPosition; m_lebenScript = FindObjectOfType <DrLeben>(); if (!m_hand) { if (GetComponentInChildren <HandAnimations>()) { m_hand = GetComponentInChildren <HandAnimations>().gameObject; } } // Set the colour of the vignette to be green for scarab attacks currentColour = new Color(0, 120f / 255f, 0, 0); //bottomVignette.color = currentColour; //topVignette.color = currentColour; //leftVignette.color = currentColour; //rightVignette.color = currentColour; boxVignette.color = currentColour; splatImage.color = currentColour; gameFader = FindObjectOfType <GameFader>(); cutscene = FindObjectOfType <CutsceneCamera>(); // mouse look initialisation m_charRot = transform.localRotation; m_cameraRot = m_camera.transform.localRotation; // Run speed ratio depending on toxicity m_toxicityToRunRatio = (m_runSpeed - m_walkSpeed) / m_maxToxicity; //press_E_Text.enabled = false; //playerInstruction.enabled = false; playerInstruction.text = ""; //requires_core_Text.enabled = false; coreCount = 0; SetCoreText(); //activate_Airlock_Text.enabled = false; if (m_handWalkPosition == Vector3.zero) { m_handWalkPosition = m_hand.transform.localPosition; } if (m_handRunPosition == Vector3.zero) { m_handRunPosition = m_handWalkPosition - new Vector3(0, 0.11f, 0); } //playerBaton.SetActive(false); //Set Slider starting toxicity to zero //toxicitySlider.value = m_currentToxicity; }
void Start() { dialogueDisplayer = (DialogueDisplayer)FindObjectOfType(typeof(DialogueDisplayer)); cutsceneCamera = GameObject.Find("CutsceneCamera").GetComponent <CutsceneCamera>(); }