-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
241 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
interface/interface_local/Assets/Scripts/UI/ButtonCostControl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEditor; | ||
using UnityEngine; | ||
using UnityEngine.EventSystems; | ||
public class ButtonCostControl : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerUpHandler | ||
{ | ||
public GameObject cost; | ||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
public void OnPointerEnter(PointerEventData eventData) | ||
{ | ||
cost.SetActive(true); | ||
} | ||
public void OnPointerExit(PointerEventData eventData) | ||
{ | ||
cost.SetActive(false); | ||
} | ||
public void OnPointerUp(PointerEventData eventData) | ||
{ | ||
|
||
} | ||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
interface/interface_local/Assets/Scripts/UI/ButtonCostControl.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters