public void InitializeTimelineSettings() { timelineTransform = timeline.GetComponent <RectTransform>(); timelineIndicator = timeline.GetComponent <TimelineIndicator>(); timelineIndicator.enabled = true; timelineIndicator.InitializeTimeline(); }
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); }
// Start is called before the first frame update private void Awake() { audioSource = GetComponent <AudioSource>(); timelineIndicator = FindObjectOfType <TimelineIndicator>(); }