Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public CheckPoint(int index, Race race)
     : this()
 {
     CheckPointIndex = index;
     Race = race;
 }