// Start is called before the first frame update void Start() { // キャラタイプ取得 firstCharaType = GameManager.Instance.firstCharType; textImage = GetComponent <Image>(); SetText(); }
// Start is called before the first frame update void Start() { firstPlayer = GameManager.Instance.playerResultInfos[0].playerNo; spriteRenderer = GetComponent <SpriteRenderer>(); animator = GetComponent <Animator>(); charaType = GameManager.Instance.firstCharType; // 優勝したプレイヤーのタイプによってアニメーションを差し替え animator.SetInteger("charaType", (int)charaType); // 優勝したプレイヤーのキャラクターナンバーによってアウトライン用マテリアルを差し替え material = GameManager.Instance.playerOutlines[(int)firstPlayer]; spriteRenderer.material = material; }
// Start is called before the first frame update void Start() { charaType = GameManager.Instance.firstCharType; SetCharaSpriteAtTopPlayer(); }