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.
 
 
 

23 lines
658 B

  1. using System;
  2. using System.Collections.Generic;
  3. using SUISS.Core;
  4. namespace Engine.DependencyTree
  5. {
  6. public class DailyGameStateDependency : DailyAbstractStateDependency<CIGGameState>
  7. {
  8. public DailyGameStateDependency(string identifier, Dictionary<string, object> persistentState, Dictionary<string, string> properties, DependencyTree.Communicator communicator) : base(identifier, persistentState, properties, communicator)
  9. {
  10. }
  11. protected override CIGGameState GetState()
  12. {
  13. if (SingletonMonobehaviour<CIGGameState>.IsAvailable)
  14. {
  15. return SingletonMonobehaviour<CIGGameState>.Instance;
  16. }
  17. return null;
  18. }
  19. }
  20. }