Skip to content

Instantly share code, notes, and snippets.

View vjgrayman's full-sized avatar

grayman vjgrayman

View GitHub Profile
@vjgrayman
vjgrayman / SimpleMovement
Last active June 17, 2019 20:49
SimpleMovement using defgault Input Keys, and Control Speed #CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
[SerializeField]
private float _speed;
[SerializeField]
@vjgrayman
vjgrayman / OnTriggerEnter
Last active August 7, 2019 12:54
[OnTriggerEnter] #CSharp
// vim: syntax=CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Collectible : MonoBehaviour
{
// add points
@vjgrayman
vjgrayman / Pause
Last active June 17, 2019 21:09
make Pause with Time.timeScale to Camera #CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pause : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
@vjgrayman
vjgrayman / Average Grade
Last active July 11, 2019 23:16
[CSharpSurvival] #CSharp
// vim: syntax=CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public float quiz1, quiz2, quiz3, quiz4, quiz5;
@vjgrayman
vjgrayman / For Loops 1
Last active July 18, 2019 19:50
[CSharpSurvival_2] #CSharp
// vim: syntax=CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
// Start is called before the first frame update
@vjgrayman
vjgrayman / Array1_SyntaxType_
Last active July 18, 2019 19:51
[CSharpSurviver_3] #CSharp
// vim: syntax=CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
// Array Types
@vjgrayman
vjgrayman / Method1_callingOrder
Last active July 23, 2019 14:12
[CSharpSurviver_4] #CSharp
// vim: syntax=CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player: MonoBehaviour
{
void Start()
@vjgrayman
vjgrayman / Classes1A_Item.cs
Last active July 24, 2019 12:25
[CSharpSurviver_5]#CSharp
// vim: syntax=CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class Item
{
[SerializeField]