I3E_STLD-ASG2/Assets/scripts/Sphere.cs
sippy-thinks e6fa4a6a2c fixed jump
changed jump height value for sphere script, also just to check if the commit worked
2024-05-26 02:18:43 +08:00

13 lines
306 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Sphere : CommonCollectibles
{
public override void Collect(GameObject gameObject)
{
gameObject.GetComponent<StarterAssets.FirstPersonController>().MoveSpeed += 6.0f;
Destroy(this);
}
}