Skip to content

Commit cbc7adc

Browse files
committed
updated new api source folder
1 parent 80fc766 commit cbc7adc

34 files changed

Lines changed: 600 additions & 95 deletions

NewAPI/seyahdoo/console.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NewAPI/seyahdoo/console/Console.cs

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
using System;
2+
using System.Collections;
3+
using System.Collections.Generic;
4+
using UnityEngine;
5+
6+
namespace seyahdoo.console
7+
{
8+
9+
public class Console : seyahdoo.other.Singleton<Console>
10+
{
11+
12+
//maybe draw console in singleton inspector view
13+
14+
void Update()
15+
{
16+
//Draw Console
17+
//Get Input
18+
}
19+
20+
public static void Excecute(string line)
21+
{
22+
if (line == "Debug")
23+
{
24+
Debug.Log("Debug Works");
25+
}
26+
27+
//throw new NotImplementedException();
28+
}
29+
30+
public static string[] Commmandlist()
31+
{
32+
throw new NotImplementedException();
33+
}
34+
35+
public delegate void LineOutDelegate(string line);
36+
37+
/// <summary>
38+
/// This will be fired when i write a line in console output
39+
/// </summary>
40+
//public static event LineOutDelegate LineOutEvent;
41+
42+
public class Command
43+
{
44+
string name;
45+
string[] paramaters;
46+
47+
public void Excecute()
48+
{
49+
throw new NotImplementedException();
50+
}
51+
}
52+
53+
public class UsableAttribute : Attribute
54+
{
55+
56+
}
57+
58+
public class DeveloperOnlyAttribute : Attribute
59+
{
60+
61+
}
62+
63+
64+
}
65+
66+
67+
68+
}

NewAPI/seyahdoo/console/Console.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEditor;
4+
using UnityEngine;
5+
#if UNITY_EDITOR
6+
7+
/// <summary>
8+
/// A small window for pool controll
9+
/// </summary>
10+
public class ConsoleWindow : EditorWindow
11+
{
12+
13+
public string stringX = "";
14+
15+
[MenuItem("Tools/Seyahdoo/Console Controls")]
16+
static void Init()
17+
{
18+
EditorWindow window = GetWindow(typeof(ConsoleWindow));
19+
window.Show();
20+
}
21+
22+
void OnGUI()
23+
{
24+
GUILayout.Label("Seyahdoo Console API");
25+
26+
stringX = EditorGUILayout.TextField("x ->", stringX);
27+
if (GUILayout.Button("Console.Excecute(x)"))
28+
{
29+
30+
seyahdoo.console.Console.Excecute(stringX);
31+
}
32+
33+
//if (Selection.activeGameObject)
34+
//{
35+
// if (GUILayout.Button("Pool.Release(Selected)"))
36+
// {
37+
//
38+
// List<GameObject> toRelease = new List<GameObject>(Selection.gameObjects);
39+
//
40+
// foreach (var item in toRelease)
41+
// {
42+
// //item.Release();
43+
// }
44+
// }
45+
//}
46+
//else
47+
//{
48+
// GUILayout.Label("Select objects to use Release object function");
49+
//}
50+
51+
this.Repaint();
52+
}
53+
54+
55+
}
56+
57+
58+
#endif

NewAPI/seyahdoo/console/ConsoleWindow.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NewAPI/seyahdoo/controlls.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
namespace seyahdoo.controlls
6+
{
7+
8+
public class MouseLookSimple : MonoBehaviour
9+
{
10+
11+
public float Sensivity = 2f;
12+
public bool working = false;
13+
14+
void Update()
15+
{
16+
17+
if (Input.GetMouseButtonDown(0))
18+
{
19+
Cursor.lockState = CursorLockMode.Locked;
20+
working = true;
21+
}
22+
23+
if (!working) return;
24+
25+
if (Input.GetKeyDown(KeyCode.Escape))
26+
{
27+
Cursor.lockState = CursorLockMode.None;
28+
working = false;
29+
}
30+
31+
transform.localEulerAngles +=
32+
new Vector3(-Input.GetAxis("Mouse Y"), Input.GetAxis("Mouse X"), 0)
33+
* Sensivity;
34+
}
35+
36+
}
37+
38+
}

NewAPI/seyahdoo/controlls/MouseLookSimple.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NewAPI/seyahdoo/controlls/SuperSimpleMouseCameraRotator.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

NewAPI/seyahdoo/crosshair.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)