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
import pyautogui | |
import cv2 | |
import numpy as np | |
import keyboard | |
import time | |
# Get the screen dimensions | |
screen_width, screen_height = pyautogui.size() | |
# Define the region of interest (center of the screen) |
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.Data; | |
using System.Data.SqlClient; | |
namespace University | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ |
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 weapon : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
public GameObject fireBalls; | |
void 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 System.Collections.Generic; | |
using UnityEngine; | |
public class DestroyIf : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
// OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider. | |
// OnTriggerEnter is called when the Collider other enters the trigger. |
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 DestroyAfter : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
public float time; | |
void Start() | |
{ |
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 UnityEngine; | |
public class CameraFollow : MonoBehaviour | |
{ | |
public Transform target,MainCamera; // The object that the camera should follow | |
public float smoothSpeed = 0.125f; // The speed at which the camera should follow the target | |
public Vector3 offset; // The offset from the target's position that the camera should follow | |
// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time. | |
protected void Start() |
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 addVelocity : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
public float force; | |
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; | |
using UnityEngine.UI; | |
public class PlayerController : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
Rigidbody rb; | |
Transform player; |
NewerOlder