예제 #1
0
 void OnDisable()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
예제 #2
0
 void OnEnable()
 {
     Instance = this;
     mProj    = gameObject.GetComponent <ArrowProjector>();
     if (mProj == null)
     {
         mProj = gameObject.AddComponent <ArrowProjector>();
     }
 }
예제 #3
0
	void OnDisable()
	{
		if (Instance == this) Instance = null;
	}
예제 #4
0
	void OnEnable()
	{
		Instance = this;
		mProj = gameObject.GetComponent<ArrowProjector>();
		if (mProj == null) mProj = gameObject.AddComponent<ArrowProjector>();
	}