1st Script: [LevelManager.cs]
public class LevelManager : MonoBehaviour {
bool HUDActive;
public static int Score;
public bool HasEnded;
2nd Script: [Powerups.cs]
public void OnMouseUp () {
if (activate) {
powerups.MyTimer += 50;
GameObject scrs = GameObject.Find("1");
LevelManager points = scrs.GetComponent();
points.Score -= 10;
↧