Created
June 8, 2015 12:18
-
-
Save sugi-cho/ad5e062cad76595f6c21 to your computer and use it in GitHub Desktop.
event Action に アクションを足していく
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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