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 'destroy'.



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 3 results

  1. I have a problem that when two colliders touch, the script doesn't do anything. These two colliders in my game only touch, one doesn't enter another. public bool isTouching = false; public float maxDistance = 0; // Use this for initialization void Start () { } void OnCollisionStay (Collision collisionInfo) { if(collisionInfo.gameObject.name == "shot") { print(gameObject.name + " collided with another object"); } }
  2. Hi there, firstly I am very new to programming what I have done so far is from people like you helping me, which I have really appreciated. Okay, I have created a level which is password protected and upon entering the password it unlocks and you can then click on it to play, but now my issue is storing that data so that when they go back into the level select that it stays unlocked. I have been looking into PlayerPrefs but I seem to not be getting anywhere. Here is my code: using UnityEngine; using System.Collections; public class ImpalaPassword : MonoBehaviour { string passwordToEdit = string.Empty; void OnGUI() { GUI.Label (new Rect (440, 340, 100, 30), "Password"); passwordToEdit = GUI.PasswordField(new Rect(440, 340, 200, 20), passwordToEdit, "*"[0], 25); } void Start () { if(PlayerPrefs.GetInt("Unlock1" == 1) { Destroy (GameObject.Find ("LockedImpala") } } void Update () { if(passwordToEdit == "***********" && Input.GetKeyDown("return")) { gameObject.SetActive(false); PlayerPrefs.SetInt("Unlock",1); PlayerPrefs.Save(); GameObject.Find("ImpalaButton").transform.localPosition = new Vector3(0,39,-3780); print(transform.localPosition.x); } } } and here is my compile error: Assets/Scripts/ImpalaPassword.cs(17,20): error CS1525: Unexpected symbol `{' ......................................................................................................................................................... Please if any one can help me.
  3. shubham kumar

    destruction

    first of all i am not a programmer,does someone knows a script like a sleep rigibody in which when i hit the lowest object all the object should fall on top of its. another thing the object should not break with player collision and bullets but with RPG..PLEASE HELP ME
×
×
  • Create New...