コード例 #1
0
 public s_trig(string name, Vector2 pos, ev_details[] ev, string util, o_trigger.TRIGGER_TYPE trig, bool disable)
 {
     this.name             = name;
     pos_x                 = (int)pos.x;
     pos_y                 = (int)pos.y;
     listofevents          = ev;
     this.util             = util;
     characternames        = null;
     boundaryobj           = null;
     trigtye               = trig;
     IsPermanentlyDisabled = disable;
 }
コード例 #2
0
 public s_trig(string name, Vector2 pos, o_trigger.TRIGGER_TYPE trig, Vector2 size, bool disable)
 {
     trigSize              = new s_save_vector(size.x, size.y);
     this.name             = name;
     util                  = null;
     pos_x                 = (int)pos.x;
     pos_y                 = (int)pos.y;
     characternames        = null;
     boundaryobj           = null;
     trigtye               = trig;
     IsPermanentlyDisabled = disable;
 }
コード例 #3
0
 public s_trig(string name, Vector2 pos, ev_details[] ev, string util, string[] charnames, int[] intlist, o_trigger.TRIGGER_TYPE trig, Vector2 trigSize, bool disable)
 {
     this.name             = name;
     pos_x                 = (int)pos.x;
     pos_y                 = (int)pos.y;
     listofevents          = ev;
     this.intlist          = intlist;
     this.trigSize         = new s_save_vector(trigSize.x, trigSize.y);
     this.util             = util;
     characternames        = charnames;
     trigtye               = trig;
     IsPermanentlyDisabled = disable;
 }
コード例 #4
0
 public s_trig(string name, Vector2 pos, ev_details[] ev, string util, GameObject[] bound, int gems, o_trigger.TRIGGER_TYPE trig, Vector2 trigSize, bool disable)
 {
     gemreq        = gems;
     this.name     = name;
     pos_x         = (int)pos.x;
     pos_y         = (int)pos.y;
     listofevents  = ev;
     this.trigSize = new s_save_vector(trigSize.x, trigSize.y);
     this.util     = util;
     boundaryobj   = new bound[bound.Length];
     for (int i = 0; i < bound.Length; i++)
     {
         boundaryobj[i] = new bound(bound[i].transform.position);
     }
     trigtye = trig;
     IsPermanentlyDisabled = disable;
 }