Exemplo n.º 1
0
        private void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            geneticLogSource   = Instance.Logger;
            geneticAssetBundle = AssetBundle.LoadFromStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("GeneticsArtifact.ArtifactResources.genetics"));

            ArtifactOfGenetics.Init();
            GeneTokens.Init();
            GeneTokenCalc.RegisterHooks();
            GeneEngineDriver.RegisterHooks();
        }
Exemplo n.º 2
0
        public void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            if (!NetworkServer.active)
            {
                return;
            }

            masterGenes = new List <MasterGeneBehaviour>();
            livingGenes = new List <MonsterGeneBehaviour>();
            deadGenes   = new List <MonsterGeneBehaviour>();
        }