コード例 #1
0
 private void Awake()
 {
     if (PaintBallTeamManager.Instance != null)
     {
         paintballTM = PaintBallTeamManager.Instance;
     }
 }
コード例 #2
0
    private void OnEnable()
    {
        Messenger.AddListener <GameObject>(GameEvents.PAINTBALL_PLAYER_SPAWNED, GetCam);
        Messenger.AddListener <float, float>(GameEvents.AMMO_UPDATED, SetAmmoFill);
        Messenger.AddListener <float>(GameEvents.SUPER_SHOT_CD, SuperShotReload);
        Messenger.AddListener <float>(GameEvents.PAINTBALL_POWER_UP_CD, PowerUPReload);

        paintballTM = PaintBallTeamManager.Instance;

        PhotonNetwork.AddCallbackTarget(this);
    }
コード例 #3
0
    private void Awake()
    {
        photon = GetComponent <PhotonView>();

        paintBallTeamManager = FindObjectOfType <PaintBallTeamManager>();
    }