Skip to content

Instantly share code, notes, and snippets.

@sugi-cho
Created June 8, 2015 12:18
Show Gist options
  • Save sugi-cho/ad5e062cad76595f6c21 to your computer and use it in GitHub Desktop.
Save sugi-cho/ad5e062cad76595f6c21 to your computer and use it in GitHub Desktop.
event Action に アクションを足していく
public event System.Action<int> OnJoin;
void Init(){
this.OnJoin += JoinAction;
}
void JoinAction(int id){
list.Add(id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment