示例#1
0
    private void Awake()
    {
        vars             = ManagerVas.GetManagerVas();
        m_SpriteRenderer = GetComponent <SpriteRenderer>();
        int bgThemeNum = Random.Range(0, vars.bgThemeSpriteList.Count);

        m_SpriteRenderer.sprite = vars.bgThemeSpriteList[bgThemeNum];
    }
示例#2
0
 private void Awake()
 {
     EventCenter.AddListener(EventDefine.DecidePath, DecidePath);
     vars = ManagerVas.GetManagerVas();
 }
示例#3
0
 private void Awake()
 {
     Instance = this;
     vars     = ManagerVas.GetManagerVas();
     Init();
 }
示例#4
0
 private void Awake()
 {
     myBody         = GetComponent <Rigidbody2D>();
     SpriteRenderer = GetComponent <SpriteRenderer>();
     vars           = ManagerVas.GetManagerVas();
 }