This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PlayerPrefsManager.cs | |
// | |
// Author: | |
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}> | |
// | |
// Copyright (c) ${2015} ${Thamas Bell} | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma strict | |
public var maxHealth : float = 100.0; | |
public var health : float = 100.0; | |
public var regenerateSpeed : float = 0.0; | |
public var invincible : boolean = false; | |
public var dead : boolean = false; | |
public var damagePrefab : GameObject; ///="Blood_Splatter" | |
public var damageEffectTransform : Transform; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma strict | |
class ReceiverItem { | |
public var receiver : GameObject; | |
private var action : String = "OnSignal"; | |
private var delay : float=0f; | |
public function SendWithDelay (sender : MonoBehaviour) { | |
yield WaitForSeconds (delay); | |
if (receiver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CameraManager.cs | |
// | |
// Author: | |
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}> | |
// | |
// Copyright (c) ${2015} ${Thamas Bell} | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PlayerPrefsManager.cs | |
// | |
// Author: | |
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}> | |
// | |
// Copyright (c) ${2015} ${Thamas Bell} | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class DrawOnGizmoDrawCube : MonoBehaviour { | |
public float gizmoSize = 4; | |
public object gizmoedObject; | |
public void OnDrawGizmos() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class DrawOnGizmoDrawRay : MonoBehaviour { | |
public float gizmoSpeed = 1f; | |
public object gizmoedObject; | |
Vector3 direction, isRay; | |
public void OnDrawGizmos() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class DrawOnGizmoDrawSphere : MonoBehaviour { | |
public float gizmoSize = 4; | |
public object gizmoedObject; | |
public void OnDrawGizmos() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class DrawOnGizmoDrawWireCube : MonoBehaviour { | |
public Vector3 center, size; | |
public void OnDrawGizmos() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class DrawOnGizmoDrawWireSphere : MonoBehaviour { | |
public float gizmoSize = 4; | |
public object gizmoedObject; | |
public void OnDrawGizmos() | |
{ |
OlderNewer