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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class rayCaster : MonoBehaviour | |
{ | |
[SerializeField, Range(5, 30)] | |
int raySize = 10; | |
public GameObject block; |
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 | |
randomNum = random.randint(1,5) | |
if randomNum == 1: | |
print("小吉") | |
elif randomNum == 2: | |
print("中吉") | |
else: | |
print("大吉") |
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 | |
class Janken: | |
def __init__(self): | |
#相手の手 | |
self.opponent = self.getOpponent() | |
#プレイヤーの手 | |
self.player = self.getPlayer() | |
if self.judge(): |
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 tkinter as tk | |
from tkinter import messagebox | |
from functools import partial | |
import random | |
import sys | |
screenHeight = 390 | |
screenWidth = 390 | |
class Application(tk.Frame): |
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.Collections; | |
using System.Collections.Generic; | |
using System.Data; | |
using UnityEngine; | |
public interface IItemManager | |
{ | |
void AddItemOnce(ItemData item); | |
void RemoveItemOnce(ItemData item); | |
void AddItem(ItemData item, int num); |
OlderNewer