Skip to content

Instantly share code, notes, and snippets.

View smkplus's full-sized avatar
😍
Curios

Seyed Morteza Kamali smkplus

😍
Curios
View GitHub Profile
@smkplus
smkplus / PuzzleShader.md
Last active July 21, 2019 12:43
PuzzleShader.md

Surface Shader

Shader "Smkgames/Surface/Puzzle" {
	Properties{
		_Color("Color", Color) = (1,1,1,1)
		_MainTex("Albedo (RGB)", 2D) = "white" {}
		_Mask("Mask (A)", 2D) = "white" {}
		_Mask2("Mask (A)", 2D) = "white" {}
		_Mask3("Mask (A)", 2D) = "white" {}
@smkplus
smkplus / ObjectPooling.md
Created July 25, 2019 04:03
Object Pooling
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TrashMan : MonoBehaviour
{
	/// <summary>
	/// ایجاد کردن پول
	/// </summary>
@smkplus
smkplus / SpriteLayoutGroup.md
Last active July 31, 2019 05:52
SpriteLayoutGroup

image

HorizontalSpriteLayoutGroup

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@smkplus
smkplus / ConvertToSprite.cs
Last active August 3, 2019 08:24 — forked from nnm-t/ConvertToSprite.cs
Convert Texture2D To Sprite
using UnityEngine;
public static class SpriteExtensiton
{
/// <summary>
/// Convert Texture2D To Sprite
/// </summary>
/// <param name="texture"></param>
/// <returns></returns>
public static Sprite Texture2DToSprite(this Texture2D texture)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SineMovement : MonoBehaviour
{
public float MoveSpeed = 5.0f;
public float frequency = 20.0f;
@smkplus
smkplus / Colors
Created October 25, 2019 06:20 — forked from louisvalet/Colors
I heard you needed colors
using UnityEngine;
public static class Colors
{
public static readonly Color AbsoluteZero = new Color32( 0, 72, 186, 255 );
public static readonly Color Acajou = new Color32( 76, 47, 39, 255 );
public static readonly Color AcidGreen = new Color32( 176, 191, 26, 255 );
public static readonly Color Aero = new Color32( 124, 185, 232, 255 );
public static readonly Color AeroBlue = new Color32( 201, 255, 229, 255 );
public static readonly Color AfricanViolet = new Color32( 178, 132, 190, 255 );
@smkplus
smkplus / 0 design-pattern.md
Created October 27, 2019 16:51 — forked from rain1024/0 design-pattern.md
design pattern

Design Pattern

  • name
  • intent
  • problem/motivation
  • solution
  • structure
  • code
  • consequences & trade-offs

Creational

@smkplus
smkplus / PersianNames.md
Last active November 26, 2019 10:17
PersianNames

نام های فارسی برای استفاده در بازی

فاطمه زهرا زینب مریم‌ مبینا ستایش ریحانه نرگس‌

@smkplus
smkplus / RandomInsideRectTransform.md
Last active November 26, 2019 10:21
Random Inside RectTransform

Record_2019_11_26_13_42_34_194

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;