I3E_STLD-ASG2/Assets/scripts/Cube.cs
2024-06-06 14:48:11 +08:00

14 lines
310 B
C#

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