Jump to content

Random thread

Recommended Posts

  VeryShyPerson said:
How do you die more than 100% of the time. Come back as a zombie goast and get killed again?

You just REALLY die. Like, you look at them and be like "fukka's ded" kinda die.

Retired Forum Moderator

Share this post


Link to post

Harry Potter revelation in the spoiler:

 

 

  Reveal hidden contents

 

Share this post


Link to post
  misses_bull said:
HOLY FUCKING SHIT

 

 

Strong Language Warning:

 

 

  Reveal hidden contents

 

Share this post


Link to post

That is a new permanent addition to to my video folder.

Don't insult me. I have trained professionals to do that.

Share this post


Link to post
using UnityEngine;
using System.Collections;

public class PowerUpScript : MonoBehaviour
{
public PlayerScript Player;
public int RandPower;

void Awake()
{
	Player=GameObject.Find("Player").GetComponent();
}

void Start ()
{
	RandPower = (Random.Range(0,2));
	if(RandPower == 0)
	{
		gameObject.renderer.material.color=Color.red;
	}
	else if(RandPower == 1)
	{
		gameObject.renderer.material.color=Color.blue;
	}
}

void OnTriggerEnter(Collider hit)
{
	if(RandPower == 0)
	{
		if(hit.gameObject.tag == "Player")
		{
			RandPower = (Random.Range(0,2));
			Destroy(gameObject);
			Player.BaseDMG += 1;
			Debug.Log("Damage permanentally upgraded by 1.");
		}
	}
	else if(RandPower == 1)
	{
		if(hit.gameObject.tag == "Player")
		{
			RandPower = (Random.Range(0,2));
			Destroy(gameObject);
			Player.hp = Player.MaxHP;
			Debug.Log("Health Restored");
		}
	}
}
}

Retired Forum Moderator

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in the community.

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

This website uses cookies, as do most websites since the 90s. By using this site, you consent to cookies. We have to say this or we get in trouble. Learn more.