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; }
public void AddTeamEvaluator(NodeAddedEvent evt, [Combine] SpiderSelfActiveNode spider, [JoinByBattle] SingleNode <TeamBattleComponent> battle) { spider.Entity.AddComponent <TeamTargetEvaluatorComponent>(); }