Continue working Portfolio
OBJECTIVES:
Graduation Video Filming/Editing -
- Trim any unneeded footage, color correct, save to shared/video production/Grad Video 2019 with your student names AND program name
- Record Unity game using OBS
- "Build Game"
- adding collectible objects (SEE GOOGLE DOC FOR CODE)
- Win Screen (SEE GOOGLE DOC FOR CODE)
Finish portfolio Page for this class (YouTube Video)
- Yearbook page exported as JPEG and put on home page
- At least 5 projects
- Objectives, tools used,
- final result, link to working file
- Final reflection: Before taking this class, did you want to be a game designer? During this class, do you think you learned skills valuable in becoming a game designer? What was your best project/why? After taking this class, would you want to be a game designer?
- Change colors, fonts and background image
using System.Collections;
ReplyDeleteusing System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Player : MonoBehaviour {
private int count;
public Text countText;
public Text winText;
// Use this for initialization
void Start () {
count = 0;
SetCountText ();
winText.text = "";
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter(Collider other) {
if (other.gameObject.CompareTag("PickUp")) {
other.gameObject.SetActive(false);
count = count + 1;
SetCountText ();
}
}
void SetCountText(){
countText.text = "Coins: " + count.ToString ();
if (count >= 5) {
winText.text = "win";
}
}
}