您不能選擇超過 %s 個話題 話題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字
 
 
 

23 行
643 B

  1. using System;
  2. using System.Collections.Generic;
  3. using SUISS.Core;
  4. namespace Engine.DependencyTree
  5. {
  6. public class GameStateDependency : AbstractStateDependency<CIGGameState>
  7. {
  8. public GameStateDependency(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. }