Пример #1
0
        protected virtual void Awake()
        {
            renderer = GetComponent<SpriteRenderer>();
            collider = GetComponent<BoxCollider2D>();

            bulletPool = BulletPool.Instance;
            enemyPool = EnemyPool.Instance;
        }
Пример #2
0
 void Awake()
 {
     Instance = this;
 }