Inheritance: NetworkBehaviour
Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (!isLocalPlayer)
            return;

        this.controler = this.transform.GetComponent<Controller>();
        this.inventaire = this.transform.GetComponent<Inventory>();
        this.cristal = this.transform.GetComponent<Cristal_HUD>();
        this.menu = this.transform.GetComponent<Menu>();
        this.IM = this.transform.GetComponent<InputManager>();
        this.skin = Resources.Load<GUISkin>("Sprites/GUIskin/skin");
        this.textNarator = new Text();
        this.textObjectif = new Text();

        this.CmdLoadProgress();

        this.skin.GetStyle("Objectifs").normal.background = skin.textArea.normal.background;
        this.skin.GetStyle("Objectifs").active.background = skin.textArea.normal.background;
        this.skin.GetStyle("Objectifs").onHover.background = skin.textArea.normal.background;
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        this.nearElement = null;
        this.character = GetComponentInChildren<CharacterCollision>().gameObject;
        this.social = GetComponent<Social_HUD>();
        this.attack = TypeAttack.None;
        this.syncCharacter = gameObject.GetComponent<SyncCharacter>();
        if (!isLocalPlayer)
            return;
        this.cam = GetComponentInChildren<Camera>().gameObject;
        this.inventaire = GetComponent<Inventory>();
        this.menu = GetComponent<Menu>();
        this.controller = GetComponent<Controller>();

        this.sucHUD = GetComponent<Success_HUD>();
        this.cristalHUD = GetComponent<Cristal_HUD>();
        this.tutoriel = GetComponent<Tutoriel>();
        this.anim = gameObject.GetComponent<Animator>();
        this.validplace = true;
        this.lastvalidplace = true;

        this.soundAudio = gameObject.GetComponent<Sound>();
        Cursor.visible = false;

        seeGUI = true;
    }