public TagsData MakeTagsData(GameObject gameObject, TagDefinition[][] definitions) { TagsData tagsData = gameObject.GetComponent <TagsData>(); if (tagsData == null) { tagsData = gameObject.AddComponent <TagsData>(); } tagsData.SetTags(definitions); return(tagsData); }
public static void Initialize() { ActivitiesData.InitializeTempData(); //UserData.InitializeTempData(); MarkData.InitializeTempData(); ActivitiesUsersData.InitializeTempData(); TagsData.InitializeTempData(); DobrfData.InitializeTempData(); FundData.InitializeTempData(); CashFlowData.InitializeTempData(); }
void Awake() { if (!mInstance) { mInstance = this; } DontDestroyOnLoad(this.gameObject); serverManager = GetComponent <ServerManager> (); triviaData = GetComponent <TriviaData> (); tagsData = GetComponent <TagsData> (); settings = GetComponent <Settings> (); resultsData = GetComponent <ResultsData> (); }
public override void OnEnter() { TagsData component = GameObject.Value.GetComponent <TagsData>(); TagMatcher = new TagMatcher(); TagMatcher.MatchType = Match; TagMatcher.Tags = Tags; TagMatcher.Categories = Categories; if (component != null && TagMatcher.isMatch(component.Data)) { base.Fsm.Event(TrueEvent); } else { base.Fsm.Event(FalseEvent); } Finish(); }