Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void
예제 #1
0
        internal ModPlayer CreateFor(Player newPlayer)
        {
            ModPlayer modPlayer = (ModPlayer)(CloneNewInstances ? MemberwiseClone() : Activator.CreateInstance(GetType()));

            modPlayer.Mod    = Mod;
            modPlayer.player = newPlayer;
            modPlayer.index  = index;
            modPlayer.Initialize();
            return(modPlayer);
        }
예제 #2
0
 internal static void SetupPlayer(Player player)
 {
     player.modPlayers.Clear();
     foreach (ModPlayer modPlayer in players)
     {
         ModPlayer newPlayer = modPlayer.Clone();
         newPlayer.player = player;
         newPlayer.Initialize();
         player.modPlayers.Add(newPlayer);
     }
 }