コード例 #1
0
ファイル: Necromancy.cs プロジェクト: moto2002/BoEG
 public override void Initialize(GameObject go)
 {
     base.Initialize(go);
     _necromancyProc = new GradualProc(_skeletonSpawnChance);
     _eventable      = go.GetComponent <IMiscEvent>();
     _teamable       = go.GetComponent <ITeamable>();
     if (_eventable == null)
     {
         throw new MissingModuleException();
     }
     _eventable.KilledEntity += KilledEntityCallback;
 }
コード例 #2
0
 public CritEffect(RandomProc proc, float critMultiplier)
 {
     _proc           = proc;
     _critMultiplier = critMultiplier;
 }