Ejemplo n.º 1
0
        public PlayerAgent(Actor actor)
            : base(actor)
        {
            this.Name = "PlayerAgent";
            actor.RegisterUpdateFunction(Update);
            actor.RegisterDeathFunction(OnPlayerDeath);
            Player = actor;

            respawnRotation = Player.PhysicsObject.Orientation;
            respawnPosition = Player.PhysicsObject.Position;
        }