Beispiel #1
0
        public PlayerSetMovements(Transform transform, GameObject gameObject, PlayerMove move,
                                  PlayerRotate rotate, PlayerFall fall, PlayerAnimator animations, PlayerRespawn respawner, GameObject water_effect)
        {
            this.transform    = transform;
            this.gameObject   = gameObject;
            this.move         = move;
            this.rotate       = rotate;
            this.fall         = fall;
            this.animations   = animations;
            this.respawner    = respawner;
            this.water_effect = water_effect;

            is_falling           = false;
            extra_movement_speed = 0;
            previous_ray         = new RaycastHit();
            previous_ray_exist   = false;
            speed_boost          = 1f;
        }
Beispiel #2
0
 public PlayerRespawn(PlayerAnimator animator, GameObject death_effect)
 {
     this.animator     = animator;
     this.death_effect = death_effect;
     player_death      = false;
 }
Beispiel #3
0
 public PlayerMove(Transform transform, PlayerAnimator animations)
 {
     this.transform  = transform;
     this.animations = animations;
     is_moving       = false;
 }
Beispiel #4
0
 public PlayerFall(Transform transform, PlayerAnimator animations)
 {
     this.transform  = transform;
     this.animations = animations;
 }