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;
            }
        }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     index     = 0;
     player    = VariableContainer.variableContainer.mainCell.player;
     sfxPlayer = GetComponent <SFXPlayer>();
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     player           = ReInput.players.GetPlayer(0);
     sfxPlayer        = GetComponent <SFXPlayer>();
     currentSelection = 0;
 }