void Start() { GameObject GameManager = GameObject.Find("GameManager"); ClearFlag = GameManager.GetComponent <ClearFlagManager>(); PlayerState = GameManager.GetComponent <PlayerStatusManager>(); RemainText = RemainTextObject.GetComponent <Text>(); }
private ClearFlagManager ClearFlag; /* クリアフラグへの参照 */ void Start() { GameObject PlayerObj = GameObject.Find("Player"); playerMove = PlayerObj.GetComponent <PlayerShootMoveManager>(); GameObject arrowTransformController = GameObject.Find("ArrowPanel"); arrowController = arrowTransformController.GetComponent <ArrowTransformController>(); GameObject GameManager = GameObject.Find("GameManager"); PlayerState = GameManager.GetComponent <PlayerStatusManager>(); ClearFlag = GameManager.GetComponent <ClearFlagManager>(); GameObject RemainManager = GameObject.Find("RemainManager"); ShootRemainCount = RemainManager.GetComponent <ShootRemainManager>(); }