public override void OnCollide(Node other) { base.OnCollide(other); if (Race == null) Race = Root.Instance.Scene.FindEntityByType<Race>(); if (Root.Instance.IsAuthoritive && other is SpaceShip && Race != null) { SpaceShip s = (SpaceShip)other; RacePlayer p = s.GetPlayer() as RacePlayer; if (p != null) Race.Reach(p, this); } }
public CheckPoint(int index, Race race) : this() { CheckPointIndex = index; Race = race; }