コード例 #1
0
ファイル: BaseEntity.cs プロジェクト: michidk/LD33
        protected virtual void Awake()
        {
            renderer = GetComponent<SpriteRenderer>();
            collider = GetComponent<BoxCollider2D>();

            bulletPool = BulletPool.Instance;
            enemyPool = EnemyPool.Instance;
        }
コード例 #2
0
ファイル: EnemyPool.cs プロジェクト: michidk/LD33
 void Awake()
 {
     Instance = this;
 }