Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     // キャラタイプ取得
     firstCharaType = GameManager.Instance.firstCharType;
     textImage      = GetComponent <Image>();
     SetText();
 }
Ejemplo n.º 2
0
 // 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;
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     charaType = GameManager.Instance.firstCharType;
     SetCharaSpriteAtTopPlayer();
 }