Ejemplo n.º 1
0
 protected override void Awake()
 {
     _mySprite = GetComponentInChildren<SpriteRenderer>();
     Transform[] children = GetComponentsInChildren<Transform>();
     _bulletSystem = this.gameObject.AddComponent<Bullets>();
     if (prefabBase != null && _bulletSystem != null)
     {
         _bulletSystem.InstantiatePool(200, prefabBase);
     }
     base.Awake ();
 }