Example #1
0
 void OnHold(WoodState wood)
 {
     if (wood.IsHold)
     {
         AudioSource.PlayClipAtPoint(clipPick, transform.position, 0.3f);
     }
     else
     {
         AudioSource.PlayClipAtPoint(clipDrop, transform.position, 0.2f);
     }
 }
Example #2
0
 void Start()
 {
     wood            = transform.GetComponent <WoodState>();
     wood.EventHold += OnHold;
 }