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; | |
using UnityEngine.SceneManagement; | |
public class StartScene : MonoBehaviour | |
{ | |
public Animator StartScreen; | |
AudioSource audioSource; |
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.UI; | |
using UnityEngine; | |
public class Raq_opponent : MonoBehaviour | |
{ | |
public float speed; | |
public float turnSpeed; | |
public Animator anim; |
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.UI; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class Raq_player : MonoBehaviour | |
{ | |
// MonoBehaviorのクラスを継承しているため、publicの変数はInspectorに表示され動的に変えることができる。 | |
// [HideInspector]で、外部クラスから値を参照するpublicの変数をInspectorに表示させないことができる |
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.SceneManagement; | |
using UnityEngine.UI; | |
using UnityEngine; | |
public class Raq_GameManager : MonoBehaviour | |
{ | |
public Transform rubberball; | |
public Transform raq_player; |
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 EventManager : MonoBehaviour | |
{ | |
private static EventManager instance; | |
public delegate void HitEventHandler(Vector3 direction); | |
public static event HitEventHandler OnRaqplayerHit; |
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; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
using UnityEngine.SceneManagement; | |
public class RubberBall : MonoBehaviour | |
{ | |
[SerializeField] |