-
Notifications
You must be signed in to change notification settings - Fork 575
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
1 parent
66d6661
commit c8cb47d
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using UnityEngine; | ||
#if INPUT_SYSTEM_ENABLED | ||
using Input = XCharts.Runtime.InputHelper; | ||
#endif | ||
using XCharts.Runtime; | ||
|
||
namespace XCharts.Example | ||
{ | ||
[DisallowMultipleComponent] | ||
[ExecuteInEditMode] | ||
public class Example_Test : MonoBehaviour | ||
{ | ||
BaseChart chart; | ||
|
||
void Awake() | ||
{ | ||
chart = gameObject.GetComponent<BaseChart>(); | ||
} | ||
|
||
void Update() | ||
{ | ||
if (Input.GetKeyDown(KeyCode.Space)) | ||
{ | ||
AddData(); | ||
} | ||
else if(Input.GetKeyDown(KeyCode.R)) | ||
{ | ||
chart.AnimationReset(); | ||
chart.AnimationFadeIn(); | ||
} | ||
} | ||
|
||
void AddData() | ||
{ | ||
chart.AnimationReset(); | ||
chart.AnimationFadeOut(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.