Пример #1
0
 private void Start()
 {
     hellBloom = GetComponent <HellBloom>();
     PlayerController.PlayerActionSelected += PlayerSelectedAction;
     PlayerController.PlayerActionExecuted += PlayerUnselectedAction;
     Selector.CancelledAction += PlayerUnselectedAction;
 }
Пример #2
0
    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>());
    }
Пример #3
0
 public void Awake()
 {
     hellBloom = GetComponent <HellBloom>();
 }