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; | |
using System.Linq; | |
namespace ConsoleApplication | |
{ | |
class Program{ | |
public enum Job{ | |
knight,magician,axman,archer,witch,swordman, | |
} | |
static void Main (string[] args) { | |
var persons = new []{ |
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; | |
using System.Text; | |
static void Main (string[] args) | |
{ | |
StringBuilder sb = new StringBuilder (); | |
B b = new B (); | |
sb.AppendLine ("B:" + b.NAME); | |
sb.AppendLine ("A:" + (new SomethingA(b)).str); | |
D d = new D (); |
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; | |
using System.Text; | |
using System.Linq; | |
using System.Collections.Generic; | |
class Program{ | |
public class A{ | |
protected string member = "class a's member"; | |
public virtual string method_a(){ | |
return "class A method a\t" + this.member; |
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; | |
using System.Text; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Threading; | |
namespace ConsoleApplication | |
{ | |
class Program{ |
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; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ImportSettingFormatter{ | |
[MenuItem("Tools/TextureFormat")] | |
public static void Format() | |
{ |
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
class Program{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine ("\n&&&&&&&&&"); | |
for (int i = 0; i < 10; i++) | |
for (int j = 0; j < 10; j++) | |
Console.WriteLine (string.Format("{0} & {1} = {2}",i,j,i&j)); | |
Console.WriteLine ("\n|||||||||"); | |
for (int i = 0; i < 10; i++) |
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; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class TouchParticleController : MonoBehaviour { | |
public enum TouchState{ | |
Touch,Untouch | |
} |
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; | |
using System.Collections; | |
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
protected static T instance; | |
public static T Instance | |
{ | |
get | |
{ |
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; | |
using System.Linq; | |
namespace PlayGrournd | |
{ | |
class MainClass | |
{ | |
public static void Main(){ | |
var line = System.Console.ReadLine().Trim(); | |
string[] words = line.Split(' '); |