using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class SineMovement : MonoBehaviour | |
| { | |
| public float MoveSpeed = 5.0f; | |
| public float frequency = 20.0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 TrashMan : MonoBehaviour
{
/// <summary>
/// ایجاد کردن پول
/// </summary>
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" {}
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UnityEngine.EventSystems;
public class UIManager : MonoBehaviour {
[System.Serializable]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Console : Debug
{
public static void Log(string _message,Color _color){
ColorUtility.ToHtmlStringRGB(_color);
Debug.Log(string.Format("{1}",ColorUtility.ToHtmlStringRGB(_color),_message));
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| //------------------------------------- | |
| // simple ink paintスクリプト | |
| // ColliderとRendererは必要 | |
| [RequireComponent(typeof(Renderer))] | |
| [RequireComponent(typeof(Collider))] | |
| public class SimpleInkPaint : MonoBehaviour { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Unlit/SimpleInkPaint" | |
| { | |
| Properties{ | |
| _MainTex("MainTex", 2D) = "white" // メインテクスチャ | |
| _Brush("Brush", 2D) = "white" // ブラシテクスチャ | |
| _BrushScale("BrushScale", FLOAT) = 0.1 // ブラシサイズ | |
| _ControlColor("ControlColor", VECTOR) = (0, 0, 0, 0) // ブラシの色 | |
| _PaintUV("Hit UV Position", VECTOR) = (0, 0, 0, 0) // ブラシで塗りたい位置 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Custom/Cook-Torrance" { | |
| Properties { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _BumpMap("Normal Map", 2D) = "bump" {} | |
| _Metallic("Metallic", Range(0,1)) = 0.5 | |
| _MetallicTex("Metallic", 2D) = "white" {} | |
| _Roughness("Roughness", Range(0.000000001,1)) = 0.5 | |
| _RoughnessTex("Roughness", 2D) = "white" {} | |
| _Fresnel("Fresnel Value", Float) = 0.028 |
