private void Awake() { vars = ManagerVas.GetManagerVas(); m_SpriteRenderer = GetComponent <SpriteRenderer>(); int bgThemeNum = Random.Range(0, vars.bgThemeSpriteList.Count); m_SpriteRenderer.sprite = vars.bgThemeSpriteList[bgThemeNum]; }
private void Awake() { EventCenter.AddListener(EventDefine.DecidePath, DecidePath); vars = ManagerVas.GetManagerVas(); }
private void Awake() { Instance = this; vars = ManagerVas.GetManagerVas(); Init(); }
private void Awake() { myBody = GetComponent <Rigidbody2D>(); SpriteRenderer = GetComponent <SpriteRenderer>(); vars = ManagerVas.GetManagerVas(); }