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