示例#1
0
 public PlayerCollision(PlayerRespawn respawner, Transform transform, float rotation_speed)
 {
     this.respawner      = respawner;
     this.transform      = transform;
     rotating_with_arrow = false;
     this.rotation_speed = rotation_speed;
 }
示例#2
0
文件: PlayerHP.cs 项目: ersim53/IE
 public PlayerHP(int health, Transform transform, PlayerRespawn respawner)
 {
     max_health            = health;
     current_health        = max_health;
     currently_visible     = false;
     coroutine_canceled    = false;
     health_bar            = transform.FindChild("HealthBarCanvas").FindChild("HealthBarBG").FindChild("HealthBar").GetComponent <Image>();
     health_bar_background = transform.FindChild("HealthBarCanvas").FindChild("HealthBarBG").GetComponent <Image>();
     player         = transform.GetComponent <Player>();
     this.respawner = respawner;
     this.transform = transform;
 }
示例#3
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;
        }