コード例 #1
0
        void Awake()
        {
            player = ReInput.players.GetPlayer(playerId);

            move      = new Vector2(0, 0);
            rb2d      = this.GetComponent <Rigidbody2D>();
            guitar    = GetComponentInChildren <GuitarController>();
            gun       = GetComponentInChildren <GunController>();
            sfx       = GetComponent <SFXPlayer>();
            particles = GetComponent <CellParticlePlayer>();

            DontDestroyOnLoad(gameObject);
            foreach (Animator a in GetComponentsInChildren <Animator>())
            {
                a.logWarnings = false;
            }
        }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     index     = 0;
     player    = VariableContainer.variableContainer.mainCell.player;
     sfxPlayer = GetComponent <SFXPlayer>();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     player           = ReInput.players.GetPlayer(0);
     sfxPlayer        = GetComponent <SFXPlayer>();
     currentSelection = 0;
 }