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
def decorator(func): | |
def wrap(*arg, **keyword): | |
print("前処理") | |
func(*arg,**keyword) | |
print("後処理") | |
return wrap | |
@decorator | |
def function(string:str): | |
print(f"hello {string}") |
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
version: '3' | |
services: | |
jenkins: | |
container_name: jenkins | |
image: jenkins/jenkins:lts-jdk17 | |
ports: | |
- "8080:8080" | |
volumes: | |
- "$PWD/jenkins_home:/var/jenkins_home" | |
networks: |
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
dir_data = { | |
'/': [ | |
'basic/', | |
'plus/' | |
], | |
'/basic/': [ | |
'what/', | |
'whom/', | |
], | |
'/basic/what/': [ |
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 UnityEngine; | |
using UnityEngine.Tilemaps; | |
public class Game : MonoBehaviour | |
{ | |
[SerializeField] private List<TileBase> tileBases; | |
[SerializeField] Tilemap Stage; |
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
class Data: | |
def __init__(self): | |
self._HP = 100 | |
self._MP = 50 | |
self.hp_lim = (0, self._HP) | |
self.mp_lim = (0, self._MP) | |
@property | |
def HP(self): | |
return self._HP |
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.EventSystems; | |
using System; | |
public class StageEreaTouchEvent : MonoBehaviour,IPointerDownHandler,IPointerUpHandler | |
{ | |
[SerializeField] private PieceCommand pieceCommand; | |
[SerializeField] private float taptime; | |
private Vector2Int pos; |
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 UnityEngine; | |
public class Puzzle | |
{ | |
//MEMO:ePieceColorについては別途定義しています。 | |
public static int STAGESIZE = 7; //7x7の領域を想定しているので、一つしか用意してません。 | |
public (Guid,ePieceColor)[,] HoldErea; // 持って動かす部分の領域 |
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; | |
/// <summary> | |
/// コルーチンにてアニメーション開始から待機に戻るまでコルーチンを止めるクラスです。 | |
/// ※ Entry -> Idle -> [任意のアニメーション] -> Exit という構成のアニメーターを想定しています。 | |
/// </summary> | |
public class WaitForAnimation : CustomYieldInstruction | |
{ | |
Animator m_animator; |
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; | |
public class BookObject: MonoBehaviour | |
{ | |
[SerializeField] | |
private Animator PageTurn; | |
public void BookPrev() | |
{ | |
PageTurn.SetTrigger("BookPrev"); |
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.EventSystems; | |
public class TouchEventTest : MonoBehaviour, IPointerDownHandler, IPointerUpHandler //Interfaceを追加 | |
{ | |
public void OnPointerDown(PointerEventData eventData) | |
{ | |
//オブジェクトをクリック、指でタップしたときに呼ばれる | |
} |
NewerOlder