Exemplo n.º 1
0
 void OnEnable()
 {
     Instance = this;
     mProj    = gameObject.GetComponent <ArrowProjector>();
     if (mProj == null)
     {
         mProj = gameObject.AddComponent <ArrowProjector>();
     }
 }
Exemplo n.º 2
0
	void OnEnable()
	{
		Instance = this;
		mProj = gameObject.GetComponent<ArrowProjector>();
		if (mProj == null) mProj = gameObject.AddComponent<ArrowProjector>();
	}