示例#1
0
 public void Start()
 {
     activeMinions = new List<GameObject>();
     projectile = this.GetProvider().GetAbility<Projectile>();
     spawn = this.GetProvider().GetAbility<Spawn>();
     colorChanger = GetComponent<ColorChanger>();
     target = GetComponent<Target>();
     spawn.Enable(target.Team, new LaneElement[]{GetComponent<LaneElement>()}, colorChanger.color);
     teamSelector = TargetManager.IsOpposing(target);
     GetComponent<CharacterEventListener>().AddCallback(CharacterEvents.Hit, Activate);
     lane = GetComponent<Lane>();
 }