void Awake() { InitPlayer(); instance = this; tempX = gateleft.position.x; CreateGateDate(); ai_end_pos = gates[0].Destination; currentgate = gates[0].Destination; endcall = GameEnd; // Debug.Log(LayerMask.GetMask("Floor")); }
public void Init (GameObject _leftrain, GameObject _rightrain, MSGcenter _msg , GameObject _hit_sphere, GameObject _bullet, GameObject _arrow , GameObject target, GameObject _bowstring, Vector3 bowsoldpoint) { leftrain = _leftrain; rightrain = _rightrain; msg = _msg; hit_sphere = _hit_sphere; bullet = _bullet; arrows = _arrow; bow = target; bowstring = _bowstring; bowsoldpos = bowsoldpoint; }
public void Init(MSGcenter m, Abstract_ALL gate) { msg = m; hp = gate.HP; allgate = gate; }