Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        //Assigns the UI Helper
        cs = GetComponent <UI_Menus>();

        //Assigns the attachments holders original position
        foreach (customisable parts in cus_Parts)
        {
            parts.original_Position = parts.customisable_Transform.localPosition;
        }

        //Deactivates the UI buttons
        foreach (GameObject buttons in UI_Buttons)
        {
            buttons.SetActive(false);
        }
    }