Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class spiel : MonoBehaviour
- {
- public int zahl;
- public bool papier = false;
- public bool stein = false;
- public bool schere = false;
- void OnEnable()
- {
- zahl = Random.Range(0, 3);
- Debug.Log(zahl);
- }
- void Schere()// 1//
- {
- schere = true;
- if (zahl == 3)
- {
- Debug.Log("Du hast Gewonnen du Cheater");
- }
- else
- {
- Debug.Log("schere");
- Debug.Log("Du hast verloren du loser");
- }
- }
- void Stein()// 2 //
- {
- stein = true;
- if (zahl == 1)
- {
- Debug.Log("Gewonnen du Cheater");
- }
- else
- {
- Debug.Log("stein");
- Debug.Log("verloren du loser");
- }
- }
- void Papier()//3 //
- {
- papier = true;
- if (zahl == 2)
- {
- Debug.Log("Gewonnen du Cheater");
- }
- else
- {
- Debug.Log("papier");
- Debug.Log("verloren du loser");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement