Skip to content

Instantly share code, notes, and snippets.

View vicky-andr-ui's full-sized avatar

vicky-andr-ui

View GitHub Profile
//thanks to windexglow
//https://forum.unity.com/threads/fly-cam-simple-cam-script.67042/
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
wasd : basic movement
shift : Makes camera accelerate
@vicky-andr-ui
vicky-andr-ui / Menus.py
Last active February 6, 2020 03:48
tkinter important codes
def doNothing():
print("not doing anything")
menu = Menu(win)
win.config(menu=menu)
submenu = Menu(menu)
menu.add_cascade(label="File", menu=submenu)
//package
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
void Update(){
this.transform.LookAt(Camera.main.transform.position);
this.transform.Rotate(new Vector3(0, 180f, 0));
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class player_Ai : MonoBehaviour
{
public Transform player;
// Start is called before the first frame update
// tut: https://www.youtube.com/watch?v=gXpi1czz5NA
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// magnitude = distance , if nearness is more magnitude is more
// tut : https://www.youtube.com/watch?v=gXpi1czz5NA
public class player_Ai : MonoBehaviour
{
public Transform player;
// Start is called before the first frame update
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class player_Ai : MonoBehaviour
{
public Transform player;
// Start is called before the first frame update
void Start()
using UnityEditor;
using UnityEngine;
public class CustomEditor : EditorWindow
{
[MenuItem("Window/EditorWindow")]
public static void OpenWindow()
{
GetWindow<CustomEditor>("Editor Test");
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class test1 : MonoBehaviour
{
GameObject piece;
public float cubeSize = 0.2f;
public int cubesInRow = 5;
// Start is called before the first frame update
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class test : MonoBehaviour
{
GameObject piece;
// Start is called before the first frame update
void Start()
{