init
This commit is contained in:
commit
9afd57306d
323 changed files with 204673 additions and 0 deletions
26
Assets/Scripts/Game08/Game08Button.cs
Normal file
26
Assets/Scripts/Game08/Game08Button.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Game08Button : MonoBehaviour{
|
||||
|
||||
public GameObject unpressed;
|
||||
public GameObject pressed;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start(){
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update(){
|
||||
|
||||
}
|
||||
|
||||
void OnTriggerStay2D(Collider2D col){
|
||||
if (Input.GetKeyDown(KeyCode.Space)){
|
||||
pressed.SetActive(true);
|
||||
unpressed.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue