Skip to content

Instantly share code, notes, and snippets.

View nooralibutt's full-sized avatar
💼
Looking for a Remote Job

Noor Ali nooralibutt

💼
Looking for a Remote Job
View GitHub Profile
@nooralibutt
nooralibutt / Readme.md
Created December 23, 2020 06:23
Integration guide of local notifications in Flutter

Integrating Notifcation Manager

1. Integrate plugin

Go to pubspec.yaml and add dependency from here

2. Add icon

app_icon needs to be a added as a drawable resource to the Android head project. Path should be as follows

@nooralibutt
nooralibutt / DragDropItem.cs
Created November 17, 2015 10:55
Free Drag Drop Item Script for uGUI Unity C#
// Canvase should be Screen Space - Camera
// Attach a Event Trigger Script to image you want to Drag Drop
// Add Begin Drag and Drap Event Listener
// Attach this script to that image
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UnityEngine.EventSystems;
@nooralibutt
nooralibutt / RequestService.cs
Created November 17, 2015 09:07
Unity Get Post Methods of Getting/Posting data to server written in C#
using UnityEngine;
using System.Collections;
public class RequestService : MonoBehaviour
{
public string GetUrl = "http://hmkcode.appspot.com/rest/controller/get.json";
public string PostUrl = "http://androidexample.com/media/webservice/httppost.php";
public string textRetrieved;
@nooralibutt
nooralibutt / MySingletonClass.cs
Last active February 1, 2021 11:59
Singleton Class Template Unity C#
using UnityEngine;
using System.Collections;
public class MySingletonClass : MonoBehaviour {
/// Static instance of Singleton Class which allows it to be accessed by any other script
private static MySingletonClass _instance = null;
/// <summary>
/// Gets the instance of the Singleton Class
@nooralibutt
nooralibutt / AdController.cs
Last active March 21, 2021 20:19
Unity Ad Controller for multiple Ad Networks
// Unity Ad Controller for multiple Ad Networks
// Copyrights SKill Knight Studios 2015
// Author: Noor Ali Butt
// v1.0
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using ChartboostSDK;
using GoogleMobileAds.Api;