// Start is called before the first frame update public override IEnumerator TaskInit() { spawnPoint = GameObject.Find("SpawnDish"); dish = GameEntityManager.Instance.GetCurrentSceneRes <MainSceneRes>().Dish.gameObject; GameEventCenter.AddEvent("SpawnDish", SpawnDish); yield return(null); }
void Awake() { gameStatus = -1; transform.GetComponent <Canvas>().transform.GetChild(0).gameObject.SetActive(false); //goalScore = GameDataManager.FlowData.GameData.dishCount; if (GameDataManager.FlowData.GameData.hand == "right") { hand.text = "操作手:右手"; } else { hand.text = "操作手:左手"; } angle.text = "角度:" + GameDataManager.FlowData.GameData.angle; dish.text = "盤數:" + GameDataManager.FlowData.GameData.dishCount; quit.onClick.AddListener(QuitButton); GameEventCenter.AddEvent("TimerStart", TimerStart); GameEventCenter.AddEvent("TimerStop", TimerStop); GameEventCenter.AddEvent("GetScore", GetScore); GameEventCenter.AddEvent <int>("MotionSuccess", MotionSuccess); // timeStart = Mathf.FloorToInt(Time.time); }
// Start is called before the first frame update public override IEnumerator TaskInit() { Debug.Log("spawn pan 12345"); spawnPoint = GameObject.Find("SpawnPan"); pan = GameEntityManager.Instance.GetCurrentSceneRes <MainSceneRes>().Pan.gameObject; GameEventCenter.AddEvent("SpawnPan", SpawnPan); yield return(null); }
// Start is called before the first frame update void Start() { Debug.Log("test data:" + data.hand); GameEventCenter.AddEvent("GameInit", GameInit); GameEventCenter.AddEvent("ScoreGet", ScoreGet); GameEventCenter.AddEvent("InitStatus", InitStatus); GameEventCenter.AddEvent("NextStatus", NextStatus); GameEventCenter.AddEvent("RedoStatus", RedoStatus); }
void Awake() { transform.GetComponent <Canvas>().transform.GetChild(0).gameObject.SetActive(false); goalScore = GameDataManager.FlowData.GameData.dishCount; if (GameDataManager.FlowData.GameData.hand == "right") { hand.text = "操作手:右手"; } else { hand.text = "操作手:左手"; } angle.text = "角度:" + GameDataManager.FlowData.GameData.angle; dish.text = "盤數:" + GameDataManager.FlowData.GameData.dishCount; GameEventCenter.AddEvent("TimerStart", TimerStart); GameEventCenter.AddEvent("TimerStop", TimerStop); // timeStart = Mathf.FloorToInt(Time.time); }
private void Awake() { GameEventCenter.AddEvent("AddScore", UpdateScore); GameEventCenter.AddEvent("Result", Result); }
private void Start() { GameEventCenter.AddEvent("BuildStart", BuildStart); }
// Start is called before the first frame update void Start() { Instantiate(item, transform.position, Quaternion.identity); GameEventCenter.AddEvent("SpawnPan", SpawnPan); GameEventCenter.AddEvent("SpawnDish", SpawnDish); }
// Start is called before the first frame update void Awake() { //correctionValue = transform.position.y; originHeight = transform.position.y; GameEventCenter.AddEvent <Vector3>("CameraCorrection", CameraCorrection); }
// Start is called before the first frame update void Start() { GameEventCenter.AddEvent("PlayMusic", PlayMusic); }
void Start() { Debug.Log("test data:" + data.hand); GameEventCenter.AddEvent("GameInit", GameInit); GameEventCenter.AddEvent("ScoreGet", ScoreGet); }
private int passStatus = 0;//0:suspend 1:playing 2:finish // Start is called before the first frame update void Start() { GameEventCenter.AddEvent("EggPass", EggPass); }
// Start is called before the first frame update void Start() { GameEventCenter.AddEvent("BGMFinish", BGMFinish); //m.Play(); }