Example #1
0
 public override void InitData()
 {
     currentLifeTime = 0;
     if (MallocManager.instance == null)
     {
         malManager = Instantiate(mallocManager).GetComponent<MallocManager>();
         malManager.Init();
     }
     else
         malManager = MallocManager.instance;
     malManager.AddMalloc(this);
     done = false;
     dying = false;
     foreach (LayerMask layerMask in rayCastLayers)
     {
         rayCastLayer = rayCastLayer | layerMask.value;
     }
 }
Example #2
0
 public void OnDestroy()
 {
     instance = null;
 }
Example #3
0
 public void Init()
 {
     instance = this;
     list = new ArrayList();
 }