void Awake() { if (Instance != null) { Destroy(Instance); // only keep one version of this } Instance = this; }
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); } }
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++; }
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++; }
void Awake() { GlobalObjs.Init(); PlayerMgr.instance.Init(); }