Skip to content

Instantly share code, notes, and snippets.

View Authenticae.cs
#if UNITY_ANDROID || UNITY_IOS || UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Firebase;
using Firebase.Auth;
using Google;
using UnityEngine;
using UnityEngine.SceneManagement;
View DrawLine.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Handles line drawing. Stores data for a line.
/// </summary>
[RequireComponent(typeof(SpriteRenderer))]
public class Line : MonoBehaviour
{
@bhupiister
bhupiister / PanAndZoom.cs
Created May 11, 2020
Pan and Zoom script for unity for all platforms
View PanAndZoom.cs
using UnityEngine;
using System;
using System.Collections.Generic;
using UnityEngine.EventSystems;
/// <summary> A modular and easily customisable Unity MonoBehaviour for handling swipe and pinch motions on mobile. </summary>
public class PanAndZoom : MonoBehaviour
{
/// <summary> Called as soon as the player touches the screen. The argument is the screen position. </summary>
@bhupiister
bhupiister / GoogleSignInImpl.cs
Last active Mar 23, 2022
Unity Google Sign in plugin with Firebase, App crashes with error configuration is null!? and Request not configured! Failing authenticate
View GoogleSignInImpl.cs
namespace Google.Impl {
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
internal class GoogleSignInImpl : BaseObject, ISignInImpl {
#if UNITY_ANDROID
private const string DllName = "native-googlesignin";
@bhupiister
bhupiister / GoogleSignIn.cs
Last active May 4, 2020
Unity Google Sign in plugin with Firebase, App crashes with error configuration is null!? and Request not configured! Failing authenticate
View GoogleSignIn.cs
namespace Google {
using System;
using System.Runtime.Serialization;
using System.Threading.Tasks;
using Google.Impl;
using UnityEngine;
public class GoogleSignIn {
#if !UNITY_ANDROID && !UNITY_IOS
View FirebasePushIDGenerator.cs
using System;
using UnityEngine;
using UnityEngine.UI;
public class PushKeyGenerator : MonoBehaviour
{
public Text showUniqueKey;
/**
* Fancy ID generator that creates 20-character string identifiers with the following properties: