コード例 #1
0
 void Start()
 {
     infoSource = GetComponent <ValueClamp>();
     if (infoSource)
     {
         infoSource.onValueChange += OnValueChange;
     }
 }
コード例 #2
0
 void Start()
 {
     infoSource = GetComponent <ValueClamp>();
     if (infoSource)
     {
         infoSource.onValueChange += ChangeStoneHitDuration;
     }
     ChangeStoneHitDuration(2);
 }
コード例 #3
0
 private void Start()
 {
     wallManager = FindObjectOfType <WallManager>();
     infoSource  = GetComponent <ValueClamp>();
     if (infoSource)
     {
         infoSource.onValueChange += ChangeColors;
     }
 }