I3E_STLD-ASG2/Assets/scripts/Cube.cs

14 lines
310 B
C#
Raw Normal View History

2024-06-06 06:48:11 +00:00
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);
}
}