void Awake()
 {
     if (Instance != null)
     {
         Destroy(Instance);             // only keep one version of this
     }
     Instance = this;
 }
Example #2
0
 public FQueueObj(Vector3 p, GameObject t, int n, bool f, actiontype a, GameObject ac)
 {
     target    = t;
     targetpt  = p;
     msgnum    = n;
     following = f;
     action    = a;
     actorObj  = ac;
     if (a != actiontype.intermission)
     {
         actorFunc = GlobalObjs.getCharFunc(actorObj);
     }
 }
Example #3
0
 public QueueObj(GameObject a, GameObject t, Vector3 tp, actiontype at)
 {
     actorObj  = a;
     targetObj = t;
     target    = tp;
     action    = at;
     if (at != actiontype.intermission)
     {
         actorFunc = GlobalObjs.getCharFunc(actorObj);
     }
     msgNum = curMsg;
     curMsg++;
 }
Example #4
0
 public QueueObj(GameObject a, GameObject t, Vector3 tp, actiontype at)
 {
     actorObj = a;
     if (at != actiontype.intermission)
     {
         Debug.Log("actor obj=" + a.name);
     }
     targetObj = t;
     target    = tp;
     action    = at;
     if (at != actiontype.intermission)
     {
         actorFunc = GlobalObjs.getCharFunc(actorObj);
         //Debug.Log ("actor func="+actorFunc.thisChar.name);
     }
     msgNum = curMsg;
     curMsg++;
 }
Example #5
0
 void Awake()
 {
     GlobalObjs.Init();
     PlayerMgr.instance.Init();
 }