void Awake() { FadeImg.rectTransform.localScale = new Vector2(Screen.width, Screen.height); tc = GameObject.Find("GameManager").GetComponent <TextBoxController>(); pc = GameObject.Find("Player").GetComponent <PlayerController>(); qm = GameObject.Find("GameManager").GetComponent <QuitManager>(); }
// Start is called before the first frame update void Start() { _mgr = new QuitManager(WaitTime); _mgr.onBeginQuit += Task0; _mgr.onBeginQuit += Task1; _mgr.onWillFinallyQuit += OnQuit; _mgr.SetQuitFunc(QuitFunc); _log = new SimpleLog(".", "log"); _log.logEnabled = true; _log.StampType = StampType; _log.StackDepth = 5; }