Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Search the Community

Showing results for tags 'exclusive'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 1 result

  1. Hello friends ArmedUnity forum I came to bring a whole unique system done for me, and I'm sharing with you here. Characteristics: Add and Remove User Limit the amount of friends you can have System inspired in AU Modern FPS. Created by: Alien_Halls [Matheus Henrique Alves] Higor_Gamer[Higor Klein] _____=====[EXCLUSIVE]=====_____ using UnityEngine; using System.Collections; using System.Collections.Generic; public class Friendy : MonoBehaviour { public GUISkin GUI_SKIN; public Vector2 scroll; public bool ShowWindow; [Header("Menu Friendly")] private float FDPosX = -3.68f; private float FDPosY = 41.8f; private float FDSizeX = 4.4f; private float FDSizeY = 1.89f; [Header("Menu Button")] private float BTPosX = -3.12f; private float BTPosY = -2.38f; private float BTSizeX = 5.63f; private float BTSizeY = 13.4f; public List<string> Friends = new List<string>(); public string Add; public int MaxFriend = 10; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnGUI () { GUI.skin = GUI_SKIN; if(!ShowWindow){ MenuButton(); }else{ MenuWindow(); } } void MenuWindow() { GUILayout.BeginArea(new Rect (Screen.width / 2 - Screen.width / FDPosX, Screen.height / 2 - Screen.height / FDPosY, Screen.width / FDSizeX, Screen.height / FDSizeY), "", GUI_SKIN.customStyles[0]); GUILayout.Box("You Have: ["+Friends.Count+"/"+MaxFriend+"] Friend."); scroll = GUILayout.BeginScrollView(scroll); GUILayout.BeginVertical(); for(int i = 0; i< Friends.Count; i++) { GUILayout.BeginHorizontal(); GUILayout.Space(25); GUILayout.Box(Friends[i], GUILayout.Width(170), GUILayout.Height(35)); if(GUILayout.Button("X", GUILayout.Width(35), GUILayout.Height(35))){ Friends.RemoveAt(i); } GUILayout.EndHorizontal(); } GUILayout.EndVertical(); GUILayout.EndScrollView(); GUILayout.Space(20); if(Friends.Count >= MaxFriend){ GUILayout.Box("You Have Reached The Maximum Of Friends."); }else{ GUILayout.BeginHorizontal(); Add = GUILayout.TextArea(Add, 20); if(GUILayout.Button("ADD", GUILayout.Width(60))){ if(Add == string.Empty){ print("Complete All Fields to Add!"); }else{ Friends.Add(Add); Add = ""; } } if(GUILayout.Button("Close", GUILayout.Width(60))){ShowWindow = false;} GUILayout.EndHorizontal(); } GUILayout.EndArea(); } void MenuButton() { GUILayout.BeginArea(new Rect (Screen.width/2 - Screen.width/BTPosX, Screen.height/2 - Screen.height/BTPosY, Screen.width/BTSizeX, Screen.height/BTSizeY), "", GUI_SKIN.customStyles[0]); if(GUILayout.Button("Show Friends", GUILayout.Height(35))){ ShowWindow = true; } GUILayout.EndArea(); } }
×
×
  • Create New...