public void AddColor(PortalStoneTarget.PortalColor usedColors) { this.neededColors = this.neededColors & (~usedColors); if (this.neededColors == PortalStoneTarget.PortalColor.None) { portalGameObject.SetActive(true); GameObject spawned = (GameObject) GameObject.Instantiate(bossEnemyPrefab); spawned.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y, 0.0f); } }
void Start() { //TODO: remove: debug color = ~PortalStoneTarget.PortalColor.None; }
public void AddColor(PortalStoneTarget.PortalColor color) { this.color |= color; }