Skip to content

Instantly share code, notes, and snippets.

View AmmarTee's full-sized avatar
I eat code and drink coffee

Ammar AmmarTee

I eat code and drink coffee
View GitHub Profile
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)
using System.Data;
using System.Data.SqlClient;
namespace University
{
public partial class Form1 : Form
{
public Form1()
{
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()
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class InGameMenu : MonoBehaviour
{
public void RestartGame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
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.
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()
{
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()
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class addVelocity : MonoBehaviour
{
// Start is called before the first frame update
public float force;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class MenuController : MonoBehaviour
{
public GameObject MainButtonPanel,LevelButtonPanel;
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;