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; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class StealthPlayerController : MonoBehaviour | |
| { | |
| private float moveSpeed = 7f; | |
| public float smoothMoveTime = .1f; |
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 KeyRing : MonoBehaviour | |
| { | |
| private List<string> m_Keys = new List<string>(); | |
| public void AddKey(string key) | |
| { |
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 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 |
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 UnityEngine; | |
| using System.Linq; | |
| public class Door : MonoBehaviour | |
| { | |
| public string myKeyName; | |
| private bool m_IsOpen = false; | |
| private bool m_ShouldOpen = false; |
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; | |
| 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 |
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 : MonoBehaviour | |
| { | |
| [SerializeField] private float speed = 7f; | |
| float m_ScreenHalfWidthInWorldUnits; | |
| float m_HalfPlayerWidth; | |
| // 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; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Guard : MonoBehaviour | |
| { | |
| public Transform pathHolder; | |
| public float speed = 5f; | |
| public float waitTime = 1f; |
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 jeremy : MonoBehaviour | |
| { | |
| //find nearest thing | |
| //turn it red | |
| //add material |
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
| 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] |
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
| 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 |
NewerOlder