public static BossEnemy Make(BossEnemyObject bossEnemyPrefab, int row, int col, Transform parent = null) { bossEnemyPrefab = Object.Instantiate(bossEnemyPrefab); bossEnemyPrefab.transform.parent = parent; bossEnemyPrefab.spawnRow = row; bossEnemyPrefab.spawnCol = col; BossEnemy result = new BossEnemy(bossEnemyPrefab, out bool success); return(success ? result : null); }
private BossEnemy(BossEnemyObject gameObject, out bool success) : base(gameObject, out success) { this.gameObject = gameObject; }