コード例 #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);
 }
コード例 #2
0
 private void OnDestroy()
 {
     staticCaster.OnDestroy();
     dynamicCaster.OnDestroy();
     One = null;
 }
コード例 #3
0
 private void OnBecameVisible()
 {
     BatchCasters.AddCaster(this);
     //Debug.Log("Visible");
 }
コード例 #4
0
 private void OnBecameInvisible()
 {
     BatchCasters.RemoveCaster(this);
     //Debug.Log("Invisible");
 }