Ejemplo n.º 1
0
    /// <summary>
    /// Randomly iniate Game Background image sprte function.
    /// </summary>
    private void RandomInitiateGameBgTheme()
    {
        spriteRenderer = GetComponent <SpriteRenderer>();
        vars           = ManagerVars.GetManagerVarsContainer();
        int randSpriteIndex = Random.Range(0, vars.bgThemeSpriteList.Count);

        spriteRenderer.sprite = vars.bgThemeSpriteList[randSpriteIndex];
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     EventCenter.AddListner(EventType.DecidePath, DecidePath);
     varsContainer = ManagerVars.GetManagerVarsContainer();
     RandomlyChoosePlatformTheme();
 }
 private void Awake()
 {
     varsContainer = ManagerVars.GetManagerVarsContainer();
     rayCastDwTf   = transform.Find("RayCastDwGo");
     rayCastFwTf   = transform.Find("RayCastFwGo");
 }
Ejemplo n.º 4
0
 private void Awake()
 {
     varsContainer = ManagerVars.GetManagerVarsContainer();
 }