public PlayerCollision(PlayerRespawn respawner, Transform transform, float rotation_speed) { this.respawner = respawner; this.transform = transform; rotating_with_arrow = false; this.rotation_speed = rotation_speed; }
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; }
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; }