Esempio n. 1
0
        public void TrySetupView()
        {
            if (this.loaded)
            {
                return;
            }
            if (this.view == null)
            {
                return;
            }
            GameObjectViewComponent gameObjectViewComponent = this.Entity.Get <GameObjectViewComponent>();

            if (gameObjectViewComponent == null)
            {
                return;
            }
            HeroDecal.SetupDecal(this.view, this.scale);
            this.view.SetActive(true);
            gameObjectViewComponent.AttachGameObject(this.name, this.view, Vector3.zero, true, true);
            this.loaded = true;
            Service.Get <ViewTimeEngine>().RegisterFrameTimeObserver(this);
            if (this.fading)
            {
                this.FadeToGray();
            }
        }
Esempio n. 2
0
 public unsafe static long $Invoke7(long instance, long *args)
 {
     HeroDecal.SetupDecal((GameObject)GCHandledObjects.GCHandleToObject(*args), *(float *)(args + 1));
     return(-1L);
 }