private void OnEnable() { if (!instance) { instance = this; } }
private void Awake() { canvasGroup = GetComponent <CanvasGroup>(); canvasGroupIcons = icons.GetComponent <CanvasGroup>(); if (!instance) { instance = this; } rectTransform = GetComponent <RectTransform>(); materialDpriteColorized.SetColor("_Color", new Color(1, 1, 1, 0)); canvasGroupIcons.alpha = 1; }
public GameObject[] nodes; //어디로 갈지 위치값 private void Awake() { _instance = this; }