コード例 #1
0
 private void OnEnable()
 {
     goldText.color = Color.yellow;
     if (statesMenuUIScript != null)
     {
         statesMenuUIScript = GetComponentInParent <StatesMenuUIScript>();
     }
 }
コード例 #2
0
 private void Awake()
 {
     if (statesMenuUIScript != null)
     {
         statesMenuUIScript = GetComponentInParent <StatesMenuUIScript>();
     }
     goldText.color = Color.yellow;
 }