Beispiel #1
0
    private void destroyScript()
    {
        vitals.setBladderState(false);

        //deletes this game object
        Destroy(gameObject);

        print("You finished peeing boi!");
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        //get some components & objects
        player       = GameObject.Find("Character");
        vitals       = player.GetComponent <Vitals>();
        camMouseLook = player.transform.Find("FPPCamera").GetComponent <CamMouseLook>();

        vitals.setBladderState(true);

        //set the initial position to the player position
        transform.position = player.transform.position;
    }