private void Awake() { if (PaintBallTeamManager.Instance != null) { paintballTM = PaintBallTeamManager.Instance; } }
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); }
private void Awake() { photon = GetComponent <PhotonView>(); paintBallTeamManager = FindObjectOfType <PaintBallTeamManager>(); }