bool display = false; //プレイヤーがクリックされた際の表示非表示を切り替えるための変数 // Use this for initialization void Start() { //----------------------------------------------------------------------------------------------------------------- //当たり判定オブジェクト取得 //----------------------------------------------------------------------------------------------------------------- Up = GameObject.Find("Player/Up"); Down = GameObject.Find("Player/Down"); Right = GameObject.Find("Player/Right"); Left = GameObject.Find("Player/Left"); //----------------------------------------------------------------------------------------------------------------- //当たり判定のスクリプト取得 //----------------------------------------------------------------------------------------------------------------- Uscript = GameObject.Find("Up").GetComponent <UP>(); Dscript = GameObject.Find("Down").GetComponent <DOWN>(); Rscript = GameObject.Find("Right").GetComponent <RIGHT>(); Lscript = GameObject.Find("Left").GetComponent <LEFT>(); //----------------------------------------------------------------------------------------------------------------- //矢印オブジェクト取得 //----------------------------------------------------------------------------------------------------------------- UpArrow = GameObject.Find("UpArrow"); DownArrow = GameObject.Find("DownArrow"); RightArrow = GameObject.Find("RightArrow"); LeftArrow = GameObject.Find("LeftArrow"); //----------------------------------------------------------------------------------------------------------------- //初期化 //----------------------------------------------------------------------------------------------------------------- Ctrigger = false; //クリック判定初期化 direction = 0; //向き変数の初期化 }
public void Left() { LEFT.Invoke(this, EventArgs.Empty); }
/// <summary> /// /// </summary> /// <param name="LEFT"></param> /// <param name="RIGHT"></param> /// <returns></returns> public static bool operator ==(BCK LEFT, BCK RIGHT) => LEFT.Equals(RIGHT);
IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \ IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, HIGH_START, HIGH_COIN, BUTTON2, BUTTON1)
IREM_INPUT_JOY_LOW(PL_L, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \ IREM_INPUT_BUTTONS_LOW(PL_L, IP_ACTIVE_LOW, LOW_START, LOW_COIN, BUTTON2, BUTTON1) \
IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \ IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, BUTTON4, BUTTON3, BUTTON2, BUTTON1)
IREM_INPUT_JOY_LOW(PL_L, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \ IREM_INPUT_BUTTONS_LOW(PL_L, IP_ACTIVE_LOW, UNUSED, BUTTON3, BUTTON2, BUTTON1) \
IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_4WAY, RIGHT, LEFT, DOWN, UP) \ IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, UNUSED, UNUSED, BUTTON2, BUTTON1)