Skip to content

Instantly share code, notes, and snippets.

View jdmiranda's full-sized avatar
💭
Building the future

Jeremy jdmiranda

💭
Building the future
View GitHub Profile
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StealthPlayerController : MonoBehaviour
{
private float moveSpeed = 7f;
public float smoothMoveTime = .1f;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KeyRing : MonoBehaviour
{
private List<string> m_Keys = new List<string>();
public void AddKey(string key)
{
using System.Collections;
using UnityEngine;
using UnityEngine.Serialization;
public class Key : MonoBehaviour
{
[SerializeField] private float rotationSpeed = .04f;
[SerializeField] private float rotationAngle = 8f;
public string keyName;
// Start is called before the first frame update
using System.Collections;
using UnityEngine;
using System.Linq;
public class Door : MonoBehaviour
{
public string myKeyName;
private bool m_IsOpen = false;
private bool m_ShouldOpen = false;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;
using UnityEngine.Serialization;
[RequireComponent(typeof(Rigidbody))]
public class PlayerController : MonoBehaviour
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
[SerializeField] private float speed = 7f;
float m_ScreenHalfWidthInWorldUnits;
float m_HalfPlayerWidth;
// Start is called before the first frame update
@jdmiranda
jdmiranda / Guard.cs
Last active July 29, 2020 15:45
Patrol some way points
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Guard : MonoBehaviour
{
public Transform pathHolder;
public float speed = 5f;
public float waitTime = 1f;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class jeremy : MonoBehaviour
{
//find nearest thing
//turn it red
//add material
def solution(S):
rows = S.split("\n")
m = []
for r in rows:
row = r.split(" ")
day = row[0]
time = row[1].split("-")
start = time[0]
def solution(A,K):
if (K == 0):
return A
days = {"Mon":1,"Tue":2,"Wed":3,"Thu":4,"Fri":5,"Sat":6,"Sun":7}
target = days[A] + K
goal = 0