This file contains 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; | |
using UnityEngine.SceneManagement; | |
public class GameController : MonoBehaviour | |
{ | |
// Note: Assign something like a UI panel to this with your game-is-paused controls (resume game, return to menu button etc.) | |
[SerializeField] public GameObject PauseMenu; | |
// ISSUE: The name of this property `ToMainMenu` was clashing with your `ToMainMenu()` method! | |
//[SerializeField] public GameObject ToMainMenu; |
This file contains 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 random | |
from tkinter import* | |
import pygame | |
import time | |
import sys | |
pygame.mixer.init() | |
pygame.init() | |
#Нужно добавить: магазин, 3 боссов, больше врагов, магию, статистику, 2 локации |
This file contains 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 TMPro; | |
using UnityEngine; | |
using UnityEngine.Events; | |
/// <summary> | |
/// Class to limit the length of input accepted by a TextMeshPro InputField. | |
/// </summary> | |
public class InputLengthLimiter : MonoBehaviour | |
{ | |
/// <summary> |
This file contains 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; | |
using UnityEngine.Rendering; | |
/// <summary> | |
/// Class to apply fog settings for a specific camera using the URP. Assign your `_cameraToModify` and change the | |
/// settings as required. | |
/// </summary> | |
public class SpecificCameraFogAdder : MonoBehaviour | |
{ | |
/// <summary> |
This file contains 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
#include <iostream> | |
#include <GL/glew.h> // Include OpenGL headers | |
#include <GL/glfw.h> // Include OpenGL Framework headers | |
#include "opencv.hpp" | |
using namespace std; | |
// Template function to convert things to strings |
This file contains 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
''' | |
Thought: How many match-ups are there in fighting games for varying numbers of characters? | |
8 chars - ABCDEFGH | |
A plays BCDEFGH 7 | |
B plays CDEFGH 6 | |
C plays DEFGH 5 | |
D plays EFGH 4 | |
E plays FGH 3 |
This file contains 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 System.Runtime.InteropServices; | |
using OpenAL; | |
using static OpenAL.AL10; | |
using static OpenAL.AL11; | |
using static OpenAL.ALEXT; | |
using static OpenAL.ALC10; |