You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
641 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Networking.Client;
  5. using Networking.Server;
  6. public class ConveyorBelt : ActiveBlock
  7. {
  8. [Header("Conveyor Settings")]
  9. [SerializeField]
  10. public LogicBlock Action;
  11. public override int GetInitative()
  12. {
  13. return 5;
  14. }
  15. public override IEnumerator OnEnvironmentTurn(PlayerData[] allPlayers)
  16. {
  17. if (CurrentPlayer != null)
  18. {
  19. //Debug.Log("currentPlayer: " + CurrentPlayer);
  20. yield return StartCoroutine(Action.Run(CurrentPlayer, 1,true));
  21. }
  22. isFinished = true;
  23. }
  24. }