using UnityEngine;
using System;
using System.Collections;

public class CommandLineInput : MonoBehaviour
{
	
	void Start()
	{
		string[] arguments = Environment.GetCommandLineArgs();

		if (arguments[0] != "-single-instace")
		{
			Application.Quit();
		}
		Debug.Log("Argument " + arguments[0]);
		Debug.Log("Argument " + arguments[1]);
	}
	
	
	void Update()
	{
	
	}
}
실행 파일 인자 받아오기 . 머 윈도우용.
2011/09/19 12:07 2011/09/19 12:07
Posted by Junios

트랙백 보낼 주소 : http://junios.net/tc/trackback/290

<< PREV : [1] : ... [5] : [6] : [7] : [8] : [9] : [10] : [11] : [12] : [13] : ... [187] : NEXT >>

BLOG main image
Junios World by Junios

카테고리

전체 (187)
주저리 (60)
Tips (8)
적어놓기 (7)
Hacking (1)
Programming (110)
(1)

최근에 받은 트랙백

글 보관함

달력

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Total : 121508
Today : 20 Yesterday : 60