private void Start() { hellBloom = GetComponent <HellBloom>(); PlayerController.PlayerActionSelected += PlayerSelectedAction; PlayerController.PlayerActionExecuted += PlayerUnselectedAction; Selector.CancelledAction += PlayerUnselectedAction; }
public void SpawnHellBloom(Point SpawnPoint, HellBloom hellbloomPrefab) { if (EnvironmentCollection.ContainsKey(SpawnPoint) || Units.Contains(SpawnPoint)) { return; } HellBloom temp = Instantiate(hellbloomPrefab, new Vector3(SpawnPoint.x, 1, SpawnPoint.z), Quaternion.identity); temp.GetComponent <EnviromentalUnit>().WorldPosition = SpawnPoint; temp.GetComponent <EnviromentalUnit>().SetPosition(SpawnPoint); temp.GetComponent <TileDecorator>().RaiseInstant(); AddSpawnedEnvironment(SpawnPoint, temp.GetComponent <EnviromentalUnit>()); }
public void Awake() { hellBloom = GetComponent <HellBloom>(); }