public void Pass(Unit to) { if (this.Owner == null) { return; } if (!to.canCatchTheBall) { return; } Game.OnPass(this.Owner, to); int index = (this.Owner.Team == Game.instance.southTeam ? 0 : 1); #if UNITY_EDITOR Game.instance.logTeam[index].WriteLine("--------------------"); Game.instance.logTeam[index].WriteLine("PASS"); #endif passManager = new PassSystem(Game.southTeam.But.transform.position, Game.northTeam.But.transform.position, this.Owner, to, this); passManager.CalculatePass(); timeOnPass = 0; NextOwner = to; }