void Awake() { DontDestroyOnLoad(gameObject); if (GameObject.FindGameObjectsWithTag("FadeManager").Length > 1) { Destroy(gameObject); } main = this; }
void Start() { locations = GameObject.FindGameObjectsWithTag("kf"); firsttime = true; i = 0; fader = gameObject.AddComponent <FullscreenFade>(); //fader.initFadeImage(); fader.triggerFadeIn(); //StartCoroutine(DoPause()); }
void Start() { FullscreenFade fsPrefab = Resources.Load <FullscreenFade>("FullscreenFade"); fullscreenFade = Instantiate(fsPrefab, transform); fullscreenFade.Initialize(); MapGenerator mapGeneratorPrefab = Resources.Load <MapGenerator>("MapGenerator"); MapGenerator = Instantiate(mapGeneratorPrefab); generalLevelConfig = Resources.Load <GeneralLevelConfig>("LevelConfigs/GeneralLevelConfig"); HUD = GameObject.FindGameObjectWithTag("Respawn"); HUD.SetActive(false); LoadBaseLevel(); player.LoadCursor(); GetMenu().ShowStart("\"Zarguuf! Come down into the cellar. We have prepared a challenge for you!\""); //LoadNextLevel(); }
void OnMouseUp() { FullscreenFade dissolve = FullscreenFade.DoFade(null, MyGradientColors.colorKeys, MyGradientColors.alphaKeys); dissolve.gameObject.AddComponent <FlipMesh>(); }
public void Fade() { FullscreenFade.BetweenLevels(DissolveColor); }