Skip to content

Instantly share code, notes, and snippets.

View deadasadodo's full-sized avatar

deadasadodo

View GitHub Profile
//by callum
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class next : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
//some code by callum bailey/deadasadodo101
using System;
using UnityEngine;
public class walk : MonoBehaviour
{
//Assingables
public Transform playerCam;
public Transform orientation;
//list you player as player and list the cube you whant to teleport with is trigger
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class next : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AIController : MonoBehaviour
{
public Transform Player;
int MoveSpeed = 4;
int MaxDist = 10;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class startgame : MonoBehaviour
{
public void loadgame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex +1);
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
public bool isFlickering = false;
public float TimeDelay;
void Update()
{
void Start () {
StartCoroutine (loadSceneAfterDelay(30));
}
IEnumerator loadSceneAfterDelay(float waitbySecs){
yield return new WaitForSeconds(waitbySecs);
Application.LoadLevel (2);
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class movebackground : MonoBehaviour
{
private Renderer renderer;
public float scrollSpeed = .1f;
void Start()
# Program make a simple calculator
# This function adds two numbers
def add(x, y):
return x + y
# This function subtracts two numbers
def subtract(x, y):
return x - y
//made by deadasadodo101
using UnityEngine;
[RequireComponent(typeof(CharacterController))]
public class SC_HeadBobber : MonoBehaviour
{
public float speed = 7.5f;
public float jumpSpeed = 8.0f;
public float gravity = 20.0f;