void Start() { infoSource = GetComponent <ValueClamp>(); if (infoSource) { infoSource.onValueChange += OnValueChange; } }
void Start() { infoSource = GetComponent <ValueClamp>(); if (infoSource) { infoSource.onValueChange += ChangeStoneHitDuration; } ChangeStoneHitDuration(2); }
private void Start() { wallManager = FindObjectOfType <WallManager>(); infoSource = GetComponent <ValueClamp>(); if (infoSource) { infoSource.onValueChange += ChangeColors; } }