Skip to content

Instantly share code, notes, and snippets.

View robsonbramos's full-sized avatar

Robson Ramos robsonbramos

View GitHub Profile
@robsonbramos
robsonbramos / UISlideTween.cs
Last active June 23, 2020 11:45
Inspector editor to quick set DOTween UI animation in Unity
using System.Collections;
using DG.Tweening;
using UnityEngine;
using UnityEditor;
public class UISlideTween : MonoBehaviour
{
[HideInInspector]
public Vector3 enterPosition, enterScale, targetPosition, targetScale, exitPosition, exitScale;
[HideInInspector]
@robsonbramos
robsonbramos / countries.sql
Last active September 5, 2017 23:03
World countries, states/regions and cities based on the structure provided by OpenCart
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Copiando estrutura para tabela sandbox.geo_country
CREATE TABLE IF NOT EXISTS `geo_country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
@robsonbramos
robsonbramos / SlideTween.cs
Last active August 8, 2020 19:11
Simple inspector to use along with DOTween for implementing sliding GUI elements in Unity 5.
using UnityEngine;
using System.Collections;
using DG.Tweening;
// BOA
public class SlideTween : MonoBehaviour
{
public enum Position { OutsideTop, OutsideBottom, OutsideLeft, OutsideRight, Center, InsideTop, InsideBottom, InsideLeft, InsideRight };
public Position enterPoint;
public Position targetPoint;