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
-- URL: http://wow-pro.com/wiki/source_code_durotar | |
-- Date: 2011-06-25 01:32 | |
-- Who: Crackerhead22 | |
-- Log: ! Missing A step for step T qid 24721 - 24712 is wrong QID, fixed to 24751 | |
-- URL: http://wow-pro.com/node/3199/revisions/24536/view | |
-- Date: 2011-06-08 23:20 | |
-- Who: Fluclo | |
-- Log: Shouldn't be a need to grind in Cataclysm, so tweaked to remove any grinding. |
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
// Include the library we need to print stuff | |
#include <iostream> | |
// Include the library we need to generate random numbers | |
#include <stdlib.h> | |
// Include the library we need to get the current time | |
#include <time.h> | |
// The start of our main() function, starting point of the program | |
int main() | |
// curly bracket that starts the main() function. |
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; | |
// This script assumes the player will have a Rigidbody2D attached | |
// and it won't work without it | |
// This line enforces that the object have a Rigidbody2D in the | |
// Unity editor | |
[RequireComponent(typeof(Rigidbody2D))] | |
public class ClickToMove : MonoBehaviour | |
{ | |
// ------------------------------------------------ |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlayerAnimation : MonoBehaviour | |
{ | |
// Called once per frame | |
public void Update() | |
{ | |
// Get the rigidbody from our player so we can check its speed |
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 System.Collections; | |
using UnityEngine.Events; | |
[AddComponentMenu("Playground/Conditions/Condition Destroy")] | |
public class ConditionDestroy : ConditionBase | |
{ | |
// This function will be called by Unity when the object is destroyed | |
void OnDestroy() |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// NOTE: Make sure your ground has the "Ground" tag (or whatever custom tag you set it to) | |
// NOTE: You may need to change your player's Rigidbody settings to Sleeping Mode: Never Sleep | |
public class PlayerJump : MonoBehaviour | |
{ | |
// An editor variable to control how much upward force the player gets when they jump | |
// Larger numbers means higher jumps |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AudioExample : MonoBehaviour | |
{ | |
// Variable to hold the Audio Clip that should play | |
public AudioClip audioToPlay; | |
// This function will be called by a button on screen |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
[CanEditMultipleObjects] | |
[CustomEditor(typeof(ConditionDestroy))] | |
public class ConditionDestroyInspector : ConditionInspectorBase | |
{ | |
private string explanation = "Use this script to perform an action when this GameObject is destroyed."; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagement; | |
[AddComponentMenu("")] | |
public class UIScript : MonoBehaviour | |
{ |
OlderNewer