public void Alarm0() { gmc.MoveTowardsPoint(player.transform.position.x, player.transform.position.y, 4); GMComponent gmcObj = Instantiate(object724, transform.position, Quaternion.identity).GetComponent <GMComponent>(); gmcObj.Speed = Random.Range(10.0f, 14.0f); gmcObj.Direction = Random.Range(0.0f, 360.0f); Invoke("Alarm0", 1.0f / GM.fps); }
public void Alarm1() { gmc.MoveTowardsPoint(GM.offsetX + 400, GM.offsetY - 100, 17.0f); Invoke("Alarm1", 1.0f / GM.fps); }