This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Update(){ | |
| this.transform.LookAt(Camera.main.transform.position); | |
| this.transform.Rotate(new Vector3(0, 180f, 0)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEditor; | |
| using UnityEngine; | |
| public class CustomEditor : EditorWindow | |
| { | |
| [MenuItem("Window/EditorWindow")] | |
| public static void OpenWindow() | |
| { | |
| GetWindow<CustomEditor>("Editor Test"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() | |
| { |
NewerOlder