コード例 #1
0
 // 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);
 }
コード例 #2
0
ファイル: MainSceneUI.cs プロジェクト: jackhu0329/Lab
        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);
        }
コード例 #3
0
ファイル: PanTask.cs プロジェクト: jackhu0329/Lab
 // 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);
 }
コード例 #4
0
ファイル: ScoreManager.cs プロジェクト: jackhu0329/Lab
 // 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);
 }
コード例 #5
0
    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);
    }
コード例 #6
0
 private void Awake()
 {
     GameEventCenter.AddEvent("AddScore", UpdateScore);
     GameEventCenter.AddEvent("Result", Result);
 }
コード例 #7
0
ファイル: BuildCube.cs プロジェクト: pnf4665jds/BuildCube
 private void Start()
 {
     GameEventCenter.AddEvent("BuildStart", BuildStart);
 }
コード例 #8
0
 // Start is called before the first frame update
 void Start()
 {
     Instantiate(item, transform.position, Quaternion.identity);
     GameEventCenter.AddEvent("SpawnPan", SpawnPan);
     GameEventCenter.AddEvent("SpawnDish", SpawnDish);
 }
コード例 #9
0
 // Start is called before the first frame update
 void Awake()
 {
     //correctionValue = transform.position.y;
     originHeight = transform.position.y;
     GameEventCenter.AddEvent <Vector3>("CameraCorrection", CameraCorrection);
 }
コード例 #10
0
 // Start is called before the first frame update
 void Start()
 {
     GameEventCenter.AddEvent("PlayMusic", PlayMusic);
 }
コード例 #11
0
ファイル: GamaManager.cs プロジェクト: jackhu0329/Lab
 void Start()
 {
     Debug.Log("test data:" + data.hand);
     GameEventCenter.AddEvent("GameInit", GameInit);
     GameEventCenter.AddEvent("ScoreGet", ScoreGet);
 }
コード例 #12
0
ファイル: EggManager.cs プロジェクト: jackhu0329/Lab
    private int passStatus = 0;//0:suspend 1:playing 2:finish



    // Start is called before the first frame update
    void Start()
    {
        GameEventCenter.AddEvent("EggPass", EggPass);
    }
コード例 #13
0
ファイル: Audio.cs プロジェクト: jackhu0329/Lab
 // Start is called before the first frame update
 void Start()
 {
     GameEventCenter.AddEvent("BGMFinish", BGMFinish);
     //m.Play();
 }