28 lines
816 B
C#
28 lines
816 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
namespace RR.Common.Managers
|
|
{
|
|
public class GlobalsManager : MonoBehaviour
|
|
{
|
|
private ComWrapper _comWrapper;
|
|
private In _in;
|
|
private PrizeSystem _prizeSystem;
|
|
|
|
private void Awake()
|
|
{
|
|
_comWrapper = GetComponent<ComWrapper>();
|
|
_in = GetComponent<In>();
|
|
_prizeSystem = GetComponent<PrizeSystem>();
|
|
|
|
if (_comWrapper == null) gameObject.AddComponent<ComWrapper>();
|
|
if (_in == null) gameObject.AddComponent<In>();
|
|
if (_prizeSystem == null) gameObject.AddComponent<PrizeSystem>();
|
|
|
|
_comWrapper.Initialize();
|
|
_in.Initialize();
|
|
_prizeSystem.Initialize();
|
|
}
|
|
}
|
|
} |