Skip to content

Instantly share code, notes, and snippets.

// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
Shader "Custom/Invert Color (sprite)"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DoorOpen : MonoBehaviour {
public GameObject openedDoor;
private bool triggered=false;
// Use this for initialization
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//this defines a new type, EntityType, that can have only these three values:
public enum EntityType
{
Sword,
Lamp,
Hat
@increpare
increpare / readme.txt
Created January 10, 2018 22:24 — forked from anonymous/readme.txt
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
"Deutsch": {
"AdvanceHelp": "Um weiter durch das Spiel zu gehen, drücken Sie die Leertaste oder klicken Sie.",
"Audio": "Audio",
"AutoPlay": "Auto",
"AutoPlaySpeed": "Autoplay-Geschwindigkeit",
"Back": "Zurück",
"BackButton": "Zurück",
"Deutsch": {
"AdvanceHelp": "Um weiter durch das Spiel zu gehen, drücken Sie die Leertaste oder klicken Sie.",
"Audio": "Audio",
"AutoPlay": "Auto",
"AutoPlaySpeed": "Autoplay-Geschwindigkeit",
"Back": "Zurück",
"BackButton": "Zurück",
public static function button(x,y,text) {
var oldtextsize=Text.size;
Text.size = GUI.buttonTextSize;
var textcolor =PAL.buttonTextCol;
var color = PAL.buttonCol;
var colorhover = PAL.buttonHighlightCol;
var borderCol = PAL.buttonBorderCol;
var linethickness=GUI.linethickness;
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
Play this game by pasting the script in http://www.puzzlescript.net/editor.html