static public int OnDestroy(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); self.OnDestroy(); return(0); } catch (Exception e) { return(error(l, e)); } }
static public int get_scanlineTex(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); pushValue(l, self.scanlineTex); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int get_compMaterial(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); pushValue(l, self.compMaterial); return(1); } catch (Exception e) { return(error(l, e)); } }
void Update() { if (Input.GetKeyDown("1")) // Wanneer je op 1 drukt als spectator wordt je camera perspectief verander naar de perspectief van pacman of het geestje { if (GameObject.FindGameObjectsWithTag("Player").Length == 1) //Checken of pacman wel bestaat voordat de camera naar het perspectief van pacman verandert { PacmanCamera.SetActive(!PacmanCamera.activeSelf); GhostCamera.SetActive(!GhostCamera.activeSelf); DirectionLight.SetActive(!DirectionLight.activeSelf); } } }
static public int constructor(IntPtr l) { try { GhostCamera o; o = new GhostCamera(); pushValue(l, o); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int getRenderTexture(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); var ret = self.getRenderTexture(); pushValue(l, ret); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int CheckResources(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); var ret = self.CheckResources(); pushValue(l, ret); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_scanlineTex(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); UnityEngine.Texture2D v; checkType(l, 2, out v); self.scanlineTex = v; return(0); } catch (Exception e) { return(error(l, e)); } }
static public int DestroyTexture(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); UnityEngine.RenderTexture a1; checkType(l, 2, out a1); self.DestroyTexture(a1); return(0); } catch (Exception e) { return(error(l, e)); } }
static public int set_lineNum(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); System.Single v; checkType(l, 2, out v); self.lineNum = v; return(0); } catch (Exception e) { return(error(l, e)); } }
static public int set_compMaterial(IntPtr l) { try { GhostCamera self = (GhostCamera)checkSelf(l); UnityEngine.Material v; checkType(l, 2, out v); self.compMaterial = v; return(0); } catch (Exception e) { return(error(l, e)); } }