Esempio n. 1
0
 // Use this for initialization
 void Awake()
 {
     One           = this;
     casterIdx     = -1;
     staticCaster  = new StaticCasters(gameObject, mat);
     dynamicCaster = new DynamicCasters(gameObject, mat);
     (dynamicCaster as DynamicCasters).SetVault(frequence, sqrDist);
 }
Esempio n. 2
0
 private void OnDestroy()
 {
     staticCaster.OnDestroy();
     dynamicCaster.OnDestroy();
     One = null;
 }
Esempio n. 3
0
 private void OnBecameVisible()
 {
     BatchCasters.AddCaster(this);
     //Debug.Log("Visible");
 }
Esempio n. 4
0
 private void OnBecameInvisible()
 {
     BatchCasters.RemoveCaster(this);
     //Debug.Log("Invisible");
 }