// Use this for initialization void Start() { _view = 0; _animator = GetComponent <Animator>(); _animator.SetInteger("View", _view); _overallController = GameObject.Find("OverallManager").GetComponent <OverallController>(); _expText.GetComponent <Text>().text = String.Format("獲得Exp:{0:0000}\n\n合計Exp:{1:0000}", _overallController.GettingExp, _overallController.ExperiencePoint); _clearTimeText = GameObject.Find("ClearTimeText").GetComponent <Text>(); _clearTimeText.text = String.Format(" クリアタイム:{0:0000}", _overallController.ClearTime); }
private void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(gameObject); } _clearTime = 0f; SetGameData(); DontDestroyOnLoad(gameObject); }
// Use this for initialization void Start() { _button = GetComponent <Button>(); _audioSource = GetComponent <AudioSource>(); if (this.gameObject.name == "StageSelectButton@StageSelect(Clone)") { Text _text = GetComponentInChildren <Text>(); _text.text = $"ステージ{_stage:00}"; _overallController = GameObject.Find("OverallManager").GetComponent <OverallController>(); _sceneController = GameObject.Find("OverallManager").GetComponent <SceneController>(); _button.onClick.AddListener(OnClickedSttageButton); } else { _button.onClick.AddListener(OnClickedNormalButton); } }
// Use this for initialization void Start() { _overallController = GameObject.Find("OverallManager").GetComponent <OverallController>(); SetStageButton(); }