Skip to content

Instantly share code, notes, and snippets.

View mamadDev's full-sized avatar

Muhammad Azman mamadDev

  • Kuala Lumpur
View GitHub Profile
using UnityEngine;
public class CameraFollow : MonoBehaviour
{
[Tooltip("Player transform to follow")]
[SerializeField] private Transform player;
[Tooltip("Distance between camera position to Player transform")]
[SerializeField] private float distance = 10;
[Tooltip("Height of camera position from Player transform")]
@mamadDev
mamadDev / UnitySave.cs
Created January 15, 2021 17:58
Demo of how to store text or save data in unity
using UnityEngine;
using System.IO;
using System;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security.Cryptography;
public class SaveDemo : MonoBehaviour
{
private void OnGUI()