Ejemplo n.º 1
0
 // Start is called before the first frame update
 void OnEnable()
 {
     _rb = GetComponent <Rigidbody>();
     if (_spawnPool == null)
     {
         _spawnPool = SpawnablePool.Instance;
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     _spawnablePool = SpawnablePool.Instance;
 }
Ejemplo n.º 3
0
 void Awake()
 {
     _instance = this;
 }