Commit 683cbb71 authored by Martin Finkel's avatar Martin Finkel
Browse files

Add initial C# plugin code

parent f2b75ae7
{
"files.associations": {
"mutex": "cpp",
"algorithm": "cpp",
"atomic": "cpp",
"chrono": "cpp",
"cmath": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"cwchar": "cpp",
"exception": "cpp",
"functional": "cpp",
"initializer_list": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"limits": "cpp",
"list": "cpp",
"map": "cpp",
"memory": "cpp",
"new": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"system_error": "cpp",
"thread": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"unordered_map": "cpp",
"utility": "cpp",
"vector": "cpp",
"xfacet": "cpp",
"xhash": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocinfo": "cpp",
"xlocnum": "cpp",
"xmemory": "cpp",
"xmemory0": "cpp",
"xstddef": "cpp",
"xstring": "cpp",
"xtr1common": "cpp",
"xtree": "cpp",
"xutility": "cpp"
}
}
\ No newline at end of file
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -479656862, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name: AS_Checklist
m_EditorClassIdentifier:
Checks:
- {fileID: 114790595107628056}
- {fileID: 114540191553902278}
- {fileID: 114214930840269636}
- {fileID: 114703830054180890}
- {fileID: 114634658267373670}
- {fileID: 114456432956001198}
- {fileID: 114467462897762792}
- {fileID: 114134911929300056}
- {fileID: 114717505207747282}
- {fileID: 114309848721288960}
- {fileID: 114620659903717232}
- {fileID: 114440207190969152}
- {fileID: 114420685430389276}
- {fileID: 114941721137799970}
- {fileID: 114999537783749826}
- {fileID: 114406973437523260}
- {fileID: 114599755267134402}
- {fileID: 114271923551669450}
- {fileID: 114658223899437640}
- {fileID: 114502730254993816}
--- !u!114 &114134911929300056
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 7
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114214930840269636
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 2
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114271923551669450
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 17
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114309848721288960
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 9
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114406973437523260
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 15
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114420685430389276
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 12
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114440207190969152
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 11
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114456432956001198
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 5
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114467462897762792
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 6
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114502730254993816
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 19
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114540191553902278
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 1
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114599755267134402
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 16
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114620659903717232
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 10
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114634658267373670
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 4
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114658223899437640
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 18
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114703830054180890
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 3
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114717505207747282
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 8
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114790595107628056
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 0
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114941721137799970
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 13
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
--- !u!114 &114999537783749826
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1783199433, guid: dd870f9e330ce6644966d4cb72f9bf4a, type: 3}
m_Name:
m_EditorClassIdentifier:
Type: 14
AssetPaths: []
Status: 0
Active: 1
Foldout: 0
FoldoutMessage: 1
FoldoutPaths: 1
Failed: 0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterControl : MonoBehaviour
{
private Vector3 moveDirection = Vector3.zero;
private Vector3 rotationDirection = Vector3.zero;
private float moveSpeed = 10f;
private float rotationSpeed = 30f;
public VJHandler jsMovement;
public VJHandler jsLook;
private Vector3 direction;
private Vector3 look;
private void Update ()
{
CharacterController controller = GetComponent<CharacterController> ();
/*
moveDirection = transform.TransformDirection (Input.GetAxis ("Horizontal"), 0, Input.GetAxis ("Vertical"));
moveDirection *= moveSpeed;
controller.Move (moveDirection * Time.deltaTime);
rotationDirection = new Vector3 (Input.GetAxisRaw ("Vertical2"), Input.GetAxisRaw ("Horizontal2"), 0);
rotationDirection *= rotationSpeed * Time.deltaTime;
transform.Rotate (rotationDirection);
*/
look = jsLook.InputDirection;
if (look.magnitude != 0) {
rotationDirection = new Vector3 (-look.y, look.x, 0) * rotationSpeed * Time.deltaTime;
transform.eulerAngles = transform.eulerAngles + rotationDirection;
}
direction = jsMovement.InputDirection;
if (direction.magnitude != 0)
{
moveDirection = new Vector3 (direction.x, 0, direction.y) * moveSpeed;
moveDirection = Camera.main.transform.TransformDirection(moveDirection);
moveDirection.y = 0;
controller.Move (moveDirection * Time.deltaTime);
//transform.position += new Vector3 (direction.x, 0, direction.y) * moveSpeed * Time.deltaTime;
}
}
}
\ No newline at end of file
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: cone
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.411511, g: 0.411511, b: 0.411511, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: cone6_texture 1
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}