Esempio n. 1
0
    public TagsData MakeTagsData(GameObject gameObject, TagDefinition[][] definitions)
    {
        TagsData tagsData = gameObject.GetComponent <TagsData>();

        if (tagsData == null)
        {
            tagsData = gameObject.AddComponent <TagsData>();
        }
        tagsData.SetTags(definitions);
        return(tagsData);
    }
Esempio n. 2
0
 public static void Initialize()
 {
     ActivitiesData.InitializeTempData();
     //UserData.InitializeTempData();
     MarkData.InitializeTempData();
     ActivitiesUsersData.InitializeTempData();
     TagsData.InitializeTempData();
     DobrfData.InitializeTempData();
     FundData.InitializeTempData();
     CashFlowData.InitializeTempData();
 }
Esempio n. 3
0
    void Awake()
    {
        if (!mInstance)
        {
            mInstance = this;
        }

        DontDestroyOnLoad(this.gameObject);
        serverManager = GetComponent <ServerManager> ();
        triviaData    = GetComponent <TriviaData> ();
        tagsData      = GetComponent <TagsData> ();
        settings      = GetComponent <Settings> ();
        resultsData   = GetComponent <ResultsData> ();
    }
Esempio n. 4
0
        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();
        }