Exemple #1
0
 public void InitSelf(NodeAddedEvent e, SpiderSelfActiveNode spider)
 {
     spider.Entity.AddComponent <UnitTargetingComponent>();
     spider.rigidbody.Rigidbody.transform.GetChild(0).GetComponentInChildren <Rigidbody>(true).gameObject.AddComponent <MinePhysicsTriggerBehaviour>().TriggerEntity = spider.Entity;
 }
Exemple #2
0
 public void AddTeamEvaluator(NodeAddedEvent evt, [Combine] SpiderSelfActiveNode spider, [JoinByBattle] SingleNode <TeamBattleComponent> battle)
 {
     spider.Entity.AddComponent <TeamTargetEvaluatorComponent>();
 }