Example #1
0
    private void Start()
    {
        this.SetOrientation();
        this.startTime = Time.time;
        float num = Splash.CalculateScale();

        this.uxCamera = GameObject.Find("UX Camera").GetComponent <Camera>();
        this.uxCamera.transform.localScale = Vector3.one * num;
        NGUIText.fontResolutionMultiplier  = num;
        this.uxRoot = GameObject.Find("UX Root");
        this.uxRoot.GetComponent <UIPanel>().alpha = 0f;
        this.startTime = this.startTime;
        this.durations = new float[]
        {
            0f,
            0.75f,
            1f,
            0.5f,
            0.5f
        };
        base.gameObject.AddComponent <AudioListener>();
        AudioClip clip = Resources.Load("stingerStartup") as AudioClip;

        this.source        = base.gameObject.AddComponent <AudioSource>();
        this.source.clip   = clip;
        this.source.volume = this.GetSfxVolume();
    }
Example #2
0
        public CameraManager()
        {
            Service.CameraManager = this;
            this.renderTextures   = new List <RenderTextureItem>();
            this.mainCamera       = new MainCamera();
            this.uxCamera         = new UXCamera();
            this.uxCamera.Init(0f);
            this.uxCamera.Scale = Splash.CalculateScale();
            this.uxSceneCamera  = new UXSceneCamera();
            this.uxSceneCamera.Init(-10f);
            this.uxCamera.Camera.clearFlags = CameraClearFlags.Depth;
            Vector3 position = Vector3.right * 1000f + Vector3.up * -500f;

            this.wipeCamera     = new WipeCamera(position);
            this.warBoardCamera = new WarBoardCamera();
        }
Example #3
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(Splash.CalculateScale()));
 }
Example #4
0
 public void CalculateScale(float width, float height)
 {
     this.uxCamera.Scale = ((height > width) ? (width / height) : Splash.CalculateScale());
 }