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
//convert string to array of chars | |
string text = "abcd"; | |
char[] array2 = text.ToCharArray(); | |
//1-convert char to array of bytes | |
//2-sumation of two array of bytes | |
//3-return the value of the two arays as array of chars | |
//4-get the char as an output of two array of bytes summation | |
//For More Information visit: http://www.ssec.wisc.edu/~tomw/java/unicode.html#x0600 |
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; | |
public class LevelLoader : MonoBehaviour | |
{ | |
public int calculations = 10000; | |
public int iterations = 10000; | |
public bool inAwake = true; | |
public bool inStart = true; |
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; | |
public class PlayerKeyboardController : MonoBehaviour | |
{ | |
//to make movement more smoother | |
//Change Mass to 0.1f | |
//Linear Drag to 0.4f |
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; | |
public class PlayerSmoothFollow : MonoBehaviour { | |
[SerializeField] private Transform target = null; | |
[SerializeField] private float distance = 20f; | |
[SerializeField] private float height = 5f; | |
[SerializeField] private float damping = 5f; | |
[SerializeField] private bool smoothRotation = true; |
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; | |
public class PlayerJoystick : MonoBehaviour | |
{ | |
public float speed = 0.1f, maxVelocity = 0.05f; | |
private Rigidbody2D myBody; | |
private Animator anim; | |
private bool moveLeft, moveRight; |
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; | |
public class MultipleLines : MonoBehaviour | |
{ | |
public GameObject circlePointPrefab; | |
public GameObject currentLineRenderer; | |
public GameObject lineRendererPrefab; | |
public Material drawingMaterial; | |
private Vector3 previousPosition, currentPostion; |
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; | |
public class SingleLine : MonoBehaviour { | |
public GameObject circlePointPrefab; | |
public GameObject currentLineRenderer; | |
public GameObject lineRendererPrefab; | |
public Material drawingMaterial; | |
private Vector3 previousPosition,currentPostion; | |
private bool clickStarted; |
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; | |
public class SinglePoint : MonoBehaviour { | |
public GameObject circlePointPrefab; | |
public GameObject currentLineRenderer; | |
public GameObject lineRendererPrefab; | |
public Material drawingMaterial; | |
// Use this for initialization |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Pie Chart</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.js"></script> | |
<script src="https://code.jquery.com/jquery-1.10.1.js"></script> | |
</head> | |
<body> |