private void Awake()
    {
        controls = new Controls();
        controls.Player.Interact.started += delegate { OnInteractButtonPressed(); };
        controls.Player.Start.started    += delegate { OnStartPressed(); };

        m_RandomSkin = GetComponentInChildren <RandomSkin>();

        source       = GameObject.Find("GameManager").GetComponent <AudioSource>();
        newSkinSound = Resources.Load <AudioClip>("SFX/UI/UI");
    }
Exemple #2
0
    public void Init(InputUser user, int id)
    {
        this.user = user;
        this.id   = id;


        anim         = GetComponentInChildren <Animator>();
        m_RandomSkin = GetComponentInChildren <RandomSkin>();

        DontDestroyOnLoad(this);
    }