Exemplo n.º 1
0
    public void InitializeTimelineSettings()
    {
        timelineTransform = timeline.GetComponent <RectTransform>();
        timelineIndicator = timeline.GetComponent <TimelineIndicator>();

        timelineIndicator.enabled = true;
        timelineIndicator.InitializeTimeline();
    }
Exemplo n.º 2
0
    private void Awake()
    {
        levelCreatorManager = FindObjectOfType <LevelCreatorManager>();
        buttonImage         = GetComponent <Image>();
        buttonImage.sprite  = defaultSprite;

        timelineIndicator = FindObjectOfType <TimelineIndicator>();
        levelDataPasser   = FindObjectOfType <LevelDataPasser>();
    }
    private void Awake()
    {
        rectTransform     = GetComponent <RectTransform>();
        timelineIndicator = transform.parent.GetComponent <TimelineIndicator>();
        audioSource       = FindObjectOfType <LevelCreatorManager>().MusicSource;

        GameSettings gameSettings = FindObjectOfType <GameSettings>();

        action1 = gameSettings.GetBindedKey(GameSettings.KeyType.Action1);
        action2 = gameSettings.GetBindedKey(GameSettings.KeyType.Action2);
    }
Exemplo n.º 4
0
 // Start is called before the first frame update
 private void Awake()
 {
     audioSource       = GetComponent <AudioSource>();
     timelineIndicator = FindObjectOfType <TimelineIndicator>();
 }