void Start() { onParam += Fun21; onParam += Fun22; onParam += Fun23; if (onParam != null) { Debug.Log("====[1. first add3 ]====="); onParam(1); } //기존에 더 추가하기... onParam += Fun21; if (onParam != null) { Debug.Log("====[2. add 1 ]====="); onParam(1); } //있던 없던 빼기... onParam -= Fun21; if (onParam != null) { Debug.Log("====[3. remove 1 ]====="); onParam(1); } }
void Start() { onParam += Fun21; onParam += Fun22; onParam += Fun23; if (onParam != null) { Debug.Log(onParam(1)); } }